Tuesday, November 16, 2010

CS201 Introduction to Programming assignment No 2 solution Fall 2010

HI All here is CS201 Fall 2010 assignment no 2 Solution


#include
#include
#include

int main()
{

clrscr();
int IndexA[10] = {0,0,0,0,0,0,0,0,0,0};
int IndexB[10] = {0,0,0,0,0,0,0,0,0,0};

cout<<"You Are Requested To Enter Values in Arrays "<>IndexA[x];
if(IndexA[x] < 0 ) { cout<<"please eneter the value between 1 & 20"; cin>>IndexA[x];
}
else if(IndexA[x] >20)
{
cout<<"please eneter the value between 1 & 20"; cin>>IndexA[x];
}
}
clrscr();
cout<<"enter Value In Second Array"<>IndexB[x];
if(IndexB[x] < 0 ) { cout<<"please eneter the value between 1 & 20"; cin>>IndexB[x];
}
else if(IndexB[x] >20)
{
cout<<"please eneter the value between 1 & 20"; cin>>IndexB[x];
}
}
clrscr();
cout<<"You have enter these values in Array"<hgh releasers


No comments:

Post a Comment