Anda di halaman 1dari 1

// ConsoleApplication2.cpp : This file contains the 'main' function.

Program execution
begins and ends there.
//
#include "pch.h"
#include <iostream>

using namespace std;


int main()
{
cout << "NAEEM ZAINUDDIN" << "\n";
cout << "1845120" << "\n";
cout << "\n" << "\n";
//taking user input for temperature
float temperature = 0;
cout << "Enter temperature value: ";
cin >> temperature;

if (temperature < 15)//firstcase


cout << "cold!" << endl;
else if (temperature > 30)//second case
cout << "hot!" << endl;
else//otherwise
cout << "mild" << endl;

system("pause");
return 0;

Anda mungkin juga menyukai