P declare a class city having highest population accept these Data for 5 cities and display the names of city having highest pop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

P declare a class city having highest population accept these Data for 5 cities and display the names of city having highest pop

16th Jan 2017, 5:25 PM
Avadhut Sonavane
Avadhut Sonavane - avatar
3 Answers
+ 1
WRITE A PROGRAM TO DECLARE A CLASS ‘CITY’ HAVING DATA MEMBERS AS NAME & POPULATION. ACCEPT THIS DATA FOR 5 CITIES & DISPLAY THE NAMES OF CITY HAVING HIGHEST POPULATION.
15th Mar 2021, 7:57 AM
Omkar Randive
Omkar Randive - avatar
0
15th Mar 2021, 7:55 AM
Omkar Randive
Omkar Randive - avatar
- 4
Please, try to write your own code and if you have problems, please, write again
2nd Dec 2017, 7:45 AM
Daniel
Daniel - avatar