class Table
{
int n;
void func(int n)
{
int k=2;
for(int i=1;i<n;i++)
{
System.out.println("table of "+k);
for(int j=1;j<=10;j++)
{
int a=j*k;
System.out.print(" "+a);
System.out.print(" ");
}
k=k+1;
System.out.print("\n");
}
}
public static void main(String k[])
{
Table t =new Table();
int num=Integer.parseInt(k[0]);//pass the number upto you want the tables eg:4
t.func(num);
}
}
1
12
123
1234
12345
To write a C++ program to display the student details using class and array of object.
$234
Inversing of a given Number. suppose we gave input 123456 then the output of the program will be 654321./*mycfiles.wordpress.comC program to print inverse of a given number*/#include#includevoid main(){long int n,rn=0,d=0;clrscr();printf("Enter the number\n\n");scanf("%ld",&n);while(n>0){d=n%10;rn=rn*10+d;n=n/10;}printf("%ld",rn);getch();}
One way to do this is to convert the number to a String, then use the corresponding String method to find out the length of the String.
If it contains a decimal point or an exponential part, then it should be handled as a float (or double).You can determine an existing variable's type in C using the type() function
kjhk
The number of pixels in an inch of a photo or a screen or a camera is given by the software. You can change it if the program alow you to do so. Thanks rylwy
sdfsdfsfsggbcvbg
8086 assembly language program to check wether given number is perfect or not
syntax error
No, thanks.
reverse programe in fox pro
It was called the Apollo mission.
Yes.
To write a C++ program to display the student details using class and array of object.
public class Table { public static void main(String[] args) { int num=Integer.parseInt(args[0]); System.out.println("Table"); for(int i=1;i<=10;i++) { System.out.println(i+"*"+num+"="+i*num); } } } its the program using command line arrgument...but you have to write it in notepad and then save is into bin folder..then go through your Dos promt and then complie it by javac and then run it by java comment.in run time you should pass the value as a command line then execute...but if you want to excute this program into netbins its not allowed..then you have to take the number as a static way...
simple program