Wednesday, 17 July 2013


/// temperature from c to f ///


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

using namespace std;


int _tmain(int argc, _TCHAR* argv[])
{
       float c,f;

       cout<<"Enter temperature in centigrade";
       cin>>c;

       f=(9/5)*c+32;
       cout<<"Entered centigrade ="<<f<<"fahrenheit";
       getch();

}
Reactions:

0 comments :

Post a Comment