Write a Java programme to Calculate the three multiples of 10
Answers
Answered by
2
Answer:
Explanation:
import java.util.*;
public class Multiple
{
public static void main(String args[])
{
//in the program there is no necessary of taking input so we should not use the scanner class
int i;
//we should give priority to the for loop as we have to run the program several times during this process
for(i=1; i,=10; i++)
{
do
{
System.out.println(3*i);
i=i+1
}
while(i<=10)
}
}
}
Answered by
2
import java.util.*;
public class Multiple
{
public static void main(String args[])
{
//in the program there is no necessary of taking input so we should not use the scanner class
int i;
//we should give priority to the for loop as we have to run the program several times during this process
for(i=1; i,=10; i++)
{
do
{
System.out.println(10*i);
i=i+1
}
while(i<=10)
}
}
}
Similar questions