C++ Programming loops + Examples (for, while, do while) [PART 2]

Looping on Programming is it like a very important, so if you are want to be a programmer, you must understand that is Looping. what is looping, you can click here  for more explanation.

Below, I will giving a simple script of Programming Loop using Syntax "for".
#include

using namespace std;

int main()
{
    cout<<"Programming Loop using Syntax "for"<<endl;
    //This program will printing 5 rows sentences
    for(int i=1; i<=5; i++){
        cout<<"This is a sentence of number "<<i<<endl;
    }
    return 0;
    <<endl;
    <<endl;
    <<"Paper 4Share";
    <<endl;
}


loading...