Thursday, 11 May 2017

C++ Tutorials for begginners (hindi/urdu) [part 20] - Arrays







#include<constream.h>

#include<iomanip.h>

void main(){

clrscr();

 

    //ARRAYS

    int numbers[5];

   

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

    {

        cout<<"plz enter "<<j<<" number"<<endl;

        cin>>numbers[j];

    }

    cout<<"you enterd the following numbers"<<endl;

 

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

       cout<<numbers[i]<<" ";

   

getch();

}

No comments:

Post a Comment