Wednesday, 22 July 2015

SIMPLE PROGRAMME TO FIND THE TABLE OF NUMBERS TAKEN BY USERS

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

No comments:

Post a Comment