Computer Science, asked by talakayala3000, 9 months ago

Write the code to input any 5 years and the population of any city and print it on the screen.

Answers

Answered by Anonymous
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