Write the code to input any 5 years and the population of any city and print it on the screen.
Answers
Answered by
1
#include<iostream.h>
void main()
{
int ar[5],pop;
cout<<"enter five years";
for(int i=0;i <5;i++)
{
cin>>ar[i];
}
cout<<"enter population";
cin>>pop;
cout<<pop;
for(i=0;i<5;i++)
{
cout<<ar[i];
}
getch();
}
hope it help .. good luck !!
Similar questions