Computer Science, asked by saniya239, 1 year ago

write a Java program to print, “welcome to the world of computes”.

Answers

Answered by Anonymous
57

Program :

class print

{

void main()

{

System.out.println("welcome to the world of computers");

}

}

Note :

(i) The statement " System.out.println" prints the line .

(ii) A class begins with a curly bracket and ends with one .

(iii) The method main() also begins with curly bracket and ends with curly braces too.

(iv) Don't forget to write the relevant class name . The class name here is "print" .


Hope it helps !

_____________________________________________________________________

Answered by Anonymous
17
class print
{
public static void main()
{
int i;
for(i=1;i<=10;i++)
System.out.println(“welcome to the world of computer”);
}
}
Similar questions