[go: up one dir, main page]

0% found this document useful (0 votes)
16 views1 page

PGM 10

The document contains a Java program that prints the numbers from 1 to 10, each followed by a tab space. After printing the numbers, it moves to the next line. This program demonstrates a simple use of a for loop and output formatting in Java.

Uploaded by

wasimrajaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

PGM 10

The document contains a Java program that prints the numbers from 1 to 10, each followed by a tab space. After printing the numbers, it moves to the next line. This program demonstrates a simple use of a for loop and output formatting in Java.

Uploaded by

wasimrajaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

public class PrintNumbers {

public static void main(String[] args) {


for (int i = 1; i <= 10; i++) {
System.out.print(i + "\t");
}
System.out.println(); // Move to the next line after printing
}
}

You might also like