Write blue j program to print table
Answers
Answered by
1
Class table
{
Public static void main(int a)
{
For(I=1 ; l<11 ; l++){
System.out.println(l*a);
}
}
}
{
Public static void main(int a)
{
For(I=1 ; l<11 ; l++){
System.out.println(l*a);
}
}
}
Answered by
1
import.java.io.*;
class table
{
public static void main() throws IOException
{
System.out.println("Enter a number");
BufferedReader br=new BufferedReader (new InputStreamReader (System.in));
int a=Integer.parseInt(br.readLine());
int b=1;
int c;
while(b<=10)
{
c=a*b;
System.out.println(c);
b++;
}
}
}
class table
{
public static void main() throws IOException
{
System.out.println("Enter a number");
BufferedReader br=new BufferedReader (new InputStreamReader (System.in));
int a=Integer.parseInt(br.readLine());
int b=1;
int c;
while(b<=10)
{
c=a*b;
System.out.println(c);
b++;
}
}
}
Similar questions