write a program to print 1,2,3,4,5,6,7,8,9,10 in a single line (in java scanner)
Answers
Answered by
7
Answer:
import.java.util.*;
class series
{
public static void main( String args[])
{
int i ;
for( i = 1 ; i <= 10 ; i++)
{
System.out.print ( i);
}
}
}
i used util package
hope it helps
comment if u have any more doubts or if you couldn't get any line
i will edit my answers
plss mark as brainliest
Similar questions