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 5adb479

Browse files
Add files via upload
1 parent 7f94d24 commit 5adb479

File tree

1 file changed

+16
-0
lines changed

1 file changed

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

0 commit comments

Comments
(0)

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