Today cold or hot program in C++.


 #include<iostream.h>

#include<conio.h>


int main() 

{

  clrscr();

   int temp;


    cout << "Enter tempreture; " << endl;

    cin >> temp;

    if (temp >= 30)

 {

cout << "Today is Hot: " << endl;

    }

    else

 {

cout << "Today is Cold; " << endl;

    }

 getch();   

return 0;

}


To run:












output:



1 comment:

theengineerschoice01@gmail.com