Program To Accept The Details Of Various Cities
/* Program To Accept The Following Details Of Various Cities 1) CITY CODE(has to be unique starting grom 101) 2) MIN.TEMPERATURE 3) MAX.TEMPERATURE 4) HUMIDITY DISPLAY THE CITY_CODE THAT RECORDS THE HIGHEST TEMPERATURE USE 2_D ARRAY. */ #include
#include
void main() { float city[20][4]; int sz,i; float max; clrscr(); printf("\n enter the no.of cities(max.20)\n"); scanf("%d",&sz); for( i=0;i
max ) max = city[i][2]; } printf("\n the city code(s) that recorded highest temperature of %f \n",max); for( i=0;i
75%=\n"); for( i=0;i
75 ) printf("\n%f",city[i][0]); } getch(); }
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/