Tuesday, 19 January 2016

// // Leave a Comment

FOR LOOP

C++ Program That Print 1 to 10 Numbers Using For Loop

#include<iostream>
using namespace std;
int main()
{//function main begains
for (int number = 1; number <= 10; number++)//for loop initial value is 1 and terminated on 10
cout << number << endl;//print number
system("pause");
}



*------------------------------------------------------------------------------------------------------*


0 comments:

Post a Comment