A program to print numbers from 1 to 10 using do-while loop statement in Java programming language.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.Please subscribe to my channel https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg
Thank you very much for your support.
Program Listing
public class Print_1_To_10 { public static void main(String[] args) { // TODO Auto-generated method stub int i=1; System.out.println(); System.out.println("\tPrint 1 To 10 Using Do While Loop in Java"); System.out.println(); System.out.print("\t"); //loop to print 1 to 100. do { System.out.print(" " + i + " "); i++; }while(i<=10); } }
No comments:
Post a Comment