A blog for beginners who want to learn C++. In this blog guest will find that learning C++ is easy or at least it is not as difficult as you first though.
August 26, 2011
Example 2
Task: Makecodingthat print an even numberof1 to 100.
Code:
for n <-- 1 to 100
{
if (n mod 2) = 0 then print n
}
No comments:
Post a Comment