Thursday, February 23, 2012

using a for loop to print Ten Non-Negative Numbers

#include <iostream>
using namespace std;

int main()
{
    for (int i=0; i!=10; i=i+1)
    cout << "\n" << i;
}


OUTOUT:
 

No comments:

Post a Comment