How do you write a C program to print the table from 1 to n side by side?

1 answer

Answer

1202100

2026-08-16 21:25

+ Follow

#include
#include
void main()
{ int
printf("\nEnter the no. upto which the multiplication table is to be displayed:");
scanf("%d",&n);

for(i=1;i<=n;i++)
{ printf("\n%d TABLE:\n",i);
for(j=1;j<=10;j++)
printf("d=%d\n",i,j,i*j);
}
getch();
}
If the ans helps you,plz increase the trust point.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.