Thursday 11 May 2017

C++ Tutorials for begginners (hindi/urdu) [part 17]- nested loops





#include<constream.h>

#include<iomanip.h>

void main(){

clrscr();

 

    //nested loops

    for(int i=1;i<=5;++i)

    {

        cout<<"value of i: "<<i<<endl;

       

        for(int j=1;j<=5;++j)

        {

             cout<<"value of j: "<<j<<" ";

        }

    }

   

getch();

}

No comments:

Post a Comment