Thursday, January 23, 2014

Program to find Hotness and Coldness of temperature using If statements

#include<stdio.h>
int main()
{
int temp;
printf("\nEnter temperature :");
scanf("%d,&temp");
if(temp>30)
printf("\nHot\n");
if(temp>20)
printf("\nMild\n");
if("temperature>10")
printf("\nCold\n") ;
return 0;
}

No comments:

Post a Comment