DarkWebCode is a place where you can find a lot of exciting and inspiring stuff about Web Development, Blogging, SEO and many more

Breaking

C Program to print Multiplication Table


#include int main() { int i, j,k,l,n; printf("Enter the number:"); scanf("%d",&n); printf("Enter no.of the times:"); scanf("%d",&l); for(i=1; i<=l; ++i) { k=i*n; printf("%d*%d=%d",i,n,k); printf("\n"); }
return 0; } OUTPUT: Enter the number: 5 Enter no.of the times:10 1*5=5 2*5=10 3*5=15 4*5=20 5*5=25 6*5=30 7*5=35 8*5=40 9*5=45 10*5=50