programme:- To find out the table of the numbers taken by users.
import java.util.*;
public class table
{
public static void main(String args[])
{
int x,z,i;
Scanner sc=new Scanner(System.in);
System.out.println("Enter the value of x");
x=sc.nextInt();
for(i=1;i<=10;i++)
{
z=i*x;
System.out.println(""+(z));
}
}
}
MENTOR:ANIL KUMAR
import java.util.*;
public class table
{
public static void main(String args[])
{
int x,z,i;
Scanner sc=new Scanner(System.in);
System.out.println("Enter the value of x");
x=sc.nextInt();
for(i=1;i<=10;i++)
{
z=i*x;
System.out.println(""+(z));
}
}
}
MENTOR:ANIL KUMAR
No comments:
Post a Comment