code convert from C++ to PS…help

I kinda need a help with the convertion of C++ code to PS code. The code is about temperature, converting °C to K and °F. So basically i have the code of C++ but i dont know who to use it in PS, because i’m pretty new to PS.

The basic C++ code is here:

#include <iostream>

using namespace std;

int main()

{

double C, K, F;

cout<<"Enter °C :"<<endl;

cin>> C;

K= C + 274.15;

F= C * 9/5 + 32;

cout<<"K:"<<K<<endl;

cout<<"°F:"<<F<<endl;

return 0;

}

submitted by /u/RazGx
[link] [comments]

Leave a Reply