Thursday, 18 July 2013



#include "stdafx.h"
#include "conio.h"
#include "stdio.h"
#include "iostream"

using namespace std;

void Temperature_1();
void Temperature_2();
void Temperature_3();
void Temperature_4();
void Temperature_5();

int _tmain(int argc, _TCHAR* argv[])
{
        Temperature_1();
        Temperature_2();
        Temperature_3();
        Temperature_4();
        Temperature_5();
        getch();
}
void Temperature_1()
{
       float c,f;
       cout<<"enter temperature in celsius1"<<endl;
       cin>>c;
       f=(9/5)*c+32;
       cout<<"f1="<<f<<endl;
}
void Temperature_2()
{
       float c,f;
       cout<<"enter temperature in celsius2"<<endl;
       cin>>c;
       f=(9/5)*c+32;
       cout<<"f2="<<f<<endl;
}
void Temperature_3()
{
       float c,f;
       cout<<"enter temperature in celsius3"<<endl;
       cin>>c;
       f=(9/5)*c+32;
       cout<<"f3="<<f<<endl;
}
void Temperature_4()
{
       float c,f;
       cout<<"enter temperature in celsius4"<<endl;
       cin>>c;
       f=(9/5)*c+32;
       cout<<"f4="<<f<<endl;
}
void Temperature_5()
{
       float c,f;
       cout<<"enter temperature in celsius5"<<endl;
       cin>>c;
       f=(9/5)*c+32;
       cout<<"f5="<<f<<endl;

}

0 comments :

Post a Comment