Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dcd8e41

Browse files
Add files via upload
This simple example tries to make us understand how C programs are constructed and executed. C Programming-Multiplication table of a Numbers using For Loop |User Input Limits.
1 parent 5adb479 commit dcd8e41

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎Multiplication Table of a number.c‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <stdio.h>
2+
int main()
3+
{
4+
int n,limit,i;
5+
6+
printf("Enter a number: ");
7+
scanf("%d",&n);
8+
printf("Enter Upper limit: ");
9+
scanf("%d",&limit);
10+
11+
printf("---------------------\n");
12+
for(i=1;i<=limit;++i)
13+
{
14+
printf("%d * %d = %d\n",n,i,n*i);
15+
}
16+
return 0;
17+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /