Jan 29, 2013

Showing 7 Days Temperature

/*Showing 7 Days Temperature*/

#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
int temp[7]={25,27,32,23,31,36,39};
char day[7][20]={"SAT","SUN","MON","TUES","WED","THURES","FRI"};
clrscr();
printf("%5s%20s","Day","Temperature\n");
for(int i=0;i<=7;++i)
{
printf("\n%-10s",Day[i]);
for(int j=0;j=temp[i]++j)
printf("*");
}
getch();
}

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts