Printing 10 Numbers
Write a method Met that prints the numbers from 1 to 10.
Only write the method - assume that the Main class & main method have been defined.
Print the numbers on a single line, separated by a space character. At the end of the line, print a new line.
Your Answer
Language
Type here to search
Answers
Answered by
1
Explanation:
for (i=1;i<11;i++)
{
print(i,end=" ")
}
Similar questions