Home
Subscribe
TechnoSlab
August 27, 2012
C program to calculate sum of numbers from 0 to 100 which are divisible by 4
Author:
tec
at
8/27/2012 08:33:00 pm
Labels:
projects
Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
#include <stdio.h>
#include <conio.h>
int
main
(
)
{
int
i
;
int
sum
=
0
;
for
(
i
=
0
;
i
<=
100
;
i
++
)
{
if
(
i
%
4
==
0
)
{
sum
=
sum
+
i
;
}
}
printf
(
"Sum: %d"
,
sum
)
;
getch
(
)
;
return
0
;
}
Related Posts
How to use PHP Built-in webserver
PHP script - retrieve email from your Gmail account
Post to your Google plus stream with a bookmarklet
Download Vatikag.com download portal script
1 comment:
Anonymous
12 February 2013 at 11:26
pagal he kya einstein k jese
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
pagal he kya einstein k jese
ReplyDelete