Write a Java program using for loop to print all the numbers from m to n.
Please answer fast...
Answers
Answered by
5
Answer:
hey is your answer...........
Attachments:
Answered by
4
Answer:
import java.util.*;
class numbers
{
public static void main()
{
Scanner sc= new Scanner (System.in);
System.out.print(" Please Enter any Number : ");
int number = sc.nextInt();
for(i = 1; i <= number; i++)
{
System.out.print(i +"\t");
}
}
}
Explanation:
hope it helps you
please mark me as the brainliest
Similar questions