Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
<!DOCTYPE html>
<html>
<head>
<style>
h1{color: red;}
#para_bold {
font-weight: bold;
}
.para_smallfont {font-style: italic;;}
</style>
<title>Web Page Design</title>
<script>
function sayHello() {
document.write("Hello, Coding Ground!");
}
sayHello();
</script>
</head>
<body>
<h1> Section 1</h1>
<p id = "para_bold"> This paragraph will be in bold</p>
<p class = "para_smallfont"> This is a smaller font paragraph</p>
<p class = "para_smallfont" > this is another smaller font paragraph</p>
<h1> Section 2</h1>
</body>
</html>
program instruens_fabulam
implicit none
! the variables
integer stat
character(79) :: line
! this opens the input file
open (25, file='text.txt', status='old', iostat=stat)
! this opens the output file
open (50, file='outtext.txt', status='unknown', iostat=stat)
! runs file
do while (.true.)
read (25, '(A)', end=79) line ! reads input line
write(*, '(80A)') line ! writes line to the screen
write(50, '(A)') trim(line) ! writes line to output file, removes trailing characters
enddo
! this closes the files
79 continue
close (25)
close (50)
end program instruens_fabulam
#include <stdio.h>
int main()
{
int x,y,z;
printf("enter an integer ");
scanf("%d", &x);
printf("enter an integer ");
scanf("%d", &y);
z=x+y;
printf("The sum is %d", z);
return 0;
}
#include <stdio.h>
#define DIM 2
void retorna_matriz2D(int mat[][DIM]) {
for (int x = 0; x < DIM; x++) {
for (int y = 0; y < DIM; y++) {
mat[x][y] = 2;
printf("%d\n", mat[x][y]);
}
}
}
int main(){
int mat2D[DIM][DIM];
retorna_matriz2D(mat2D);
for (int x = 0; x < DIM; x++) {
for (int y = 0; y < DIM; y++) {
printf("%d\n", mat2D[x][y]);
}
}
}
//https://pt.stackoverflow.com/q/235989/101
using System;
class Program
{
static void Main () {
int bendras = 55,
eilutes = 10;
char character = '*';
for (int i = 1; i <= bendras; i++) {
for (int j = 1; j <= eilutes; j++) {
Console.Write(character);
bendras--;
}
Console.WriteLine("{0} {1}", i, bendras);
}
for (int k = 1; k <= bendras; k++) {
Console.Write(character);
}
}
}