Skip to content

Commit 0fdc5b2

Browse files
committed
my first PR in hacktoberfest 2k19
1 parent 8510e00 commit 0fdc5b2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

num_divisible.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <stdio.h>
2+
main()
3+
{
4+
int i;
5+
printf(" First 100 numbers which are divisible by 3 and 5 ");
6+
7+
for (i=1; i<=100; i++)
8+
{
9+
if (i%3==0 && i%5==0)
10+
printf(" %d", i);
11+
}
12+
getch();
13+
}

0 commit comments

Comments
 (0)