Computer Science, asked by Knhf9922, 8 months ago

Write a program to accept a temperature and tell whether water will be in solid liquid or gaseous state

Answers

Answered by Aryansingh001
3

Answer:

#include <stdio.h>

void main()

{

int tmp;

printf("Input days temperature : ");

scanf("%d",&tmp);

if(tmp<0)

printf("Freezing weather.\n");

else if(tmp<10)

printf("Very cold weather.\n");

else if(tmp<20)

printf("Cold weather.\n");

else if(tmp<30)

printf("Normal in temp.\n");

else if(tmp<40)

printf("Its Hot.\n");

else

printf("Its very hot.\n");

}

Explanation:

plz plz mark me as a brainiliest plz

Attachments:
Similar questions