Admin Admin
Posts : 216 Join date : 2011-06-17 Location : Rawalpindi
| Subject: Table of any Number in C Thu Oct 27, 2011 5:29 am | |
| Table of any Number in C #include #include void main(void) { clrscr(); printf("Welcome to [You must be registered and logged in to see this link.] \n"); printf("Enter any number to find its table?"); int a,s,d; scanf("%d",&a); s=1; if(a>=0&&a<=10000) { while(s<=10) { d=a*s; printf("%d X %d = %d\n",a,s,d); s=s+1; } } else printf("Invalid input...\n"); printf("\n\n\nI hope you will come back soon to [You must be registered and logged in to see this link.] \n"); printf("Press any key to Exit..."); getch(); }
| |
|