• تبدیل سانتیگراد به فارنهایت

F = C * 1.8 + 32

#include <iostream>
#include <conio.h>

main()
{
    float c;
    cout << "Enter Centigrade Degree: \n";
    cin>>c;
    cout<<"Fahrenheit Degree :\t"<<c*1.8+32;
    getch();
}


    • تبدیل فارنهایت به سانتیگراد

C = (F - 32) / 1.8

#include <iostream>
#include <conio.h>

main()
{
    float f;
    cout << "Enter
Fahrenheit Degree: \n";
    cin>>f;
    cout<<"
Centigrade Degree :\t"<<(f-32)/1.8;
    getch();
}