write the python program to print a table of a number using while loop
Answers
Answered by
1
Answer
import java.io.*;
class table
{
// Driver códe
public static void main(String arg[])
{
// Change here to change output
int n = 7;
for (int i = 1; i <= 10; ++i)
System.out.println(n + " * " + i +
" = " + n * i);
}
}
OUTPUT
7 * 1 = 7
7 * 2= 14
7 * 3 = 21
7 * 4 = 28
7 * 5= 35
7 * 6= 42
7 * 7 = 49
7 * 8= 56
7 * 9 =63
7 * 10= 70
Similar questions