Display Numbers : 1-2-3-4-5-6-7-8-9-10 //- Not start form First
//1-2-3-----10 class script { public static void main(String[] args) { int i; for(i=1;i<10;i++) { System.out.print(i); for(int j=i;j==i;j++) { System.out.print("-"); } } System.out.print(i); } }
If The Given Code is Correct Comment it.
(Visited 60 times, 1 visits today)
Written by: