Computer Science, asked by sam8851, 9 months ago

write a program to print your name id school name and class ​

Answers

Answered by happiestgirl12
0

Answer:

Code Explanation:

The first line of the main function creates an object of Scanner class which takes the input for the school name. Then the loop will execute 4 times and print the school name for every iteration of the loop in different lines. The line change can be done with the help of print() function.

Answered by nainachaudhary7l6
0

Answer:

Code Explanation:

The first line of the main function creates an object of Scanner class which takes the input for the school name. Then the loop will execute 4 times and print the school name for every iteration of the loop in different lines. The line change can be done with the help of print() function.

Explanation:

hope it'll help

Similar questions