This program show a multiple table
/*Exercise 4.1*/ #include<stdio.h> int main (void) { int input,i,j,ans; printf("Enter the number: "); scanf("%d",&input); for(i=1;i<=input;i++) { printf("\t(%d)\t",i); } printf("\n----------------------------------------------------------------------------------------------------"); for(i=1;i<input+1;i++) { ans=1; printf("\n(%d)",i); for(j=1;j<=input;j++) { ans=i*j; printf("\t %d\t",ans); } printf("\n--------------------------------------------------------------------------------------------------"); } printf("\n"); return 0; } |
Download Source code & exe
December 19th, 2009 at 9:41 pm
Dude are you crazy or what? I thought this was your personal blog and you’re teaching others C+
lol pathetic
December 24th, 2009 at 7:38 am
I have the same problem are you crazy? that is not C++ its C 😛