Tables Of Any Given Number - Online Code

Description

This program shows the table of a given number.

Source Code

#include<stdio.h>
int main()
{
int x,y=1,z=1;
printf("enter the number for table");
scanf("%d",&x);
while(y<11)
{
z=x*y;
y++;
printf("%d",&z);
}
return(0);
}
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

anurag jain on 2012-03-14 16:15:26 wrote,

#include<stdio.h>
#include<conio.h>
int main()
{
int x,y=1,z=1;
printf("enter the number for table");
scanf("%d",&x);
for ( y=1;Y<=11;Y++)
{
z=x*y;
printf("%d",&z);
}
return(0);
}