Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
C++: Create a loop to print out 0 - 100
SUBMITTED BY:
Guest
DATE:
Oct. 18, 2013, 6:40 p.m.
FORMAT:
C++
SIZE:
293 Bytes
Raw
Download
Tweet
HITS:
1242
Go to comments
Report
// Program Purpose: Create a loop in C++ to print out 0 - 100.
#include
<stdio.h>
int
main
()
{
int
i
;
i
=
0
;
while
(
i
<=
100
)
{
printf
(
"%d"
,
i
);
printf
(
"
\n
"
);
i
=
i
+
1
;
}
getchar
();
getchar
();
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus