Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Test {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- for (int count=1; count <=10; count++) {
- System.out.printf("The value of count is %d.\n", count);
- }
- int x = 1;
- do {
- System.out.printf("The value of x=%d\n",x);
- x++;
- } while (x <= 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment