Sudhir Chouhan (FutureStar22)

FutureStar22

Geek Repo

Company:Amazon

Location:Jaipur

Twitter:@future_starzz

Github PK Tool:Github PK Tool

Sudhir Chouhan's repositories

future_starzz

Config files for my GitHub profile.

Stargazers:0Issues:1Issues:0

Temprature-Convertor-from-Kelvin-to-Celsius-Fahrenheit-and-Newton-in-JavaScript

//Today's forcast is 293k const kelvin = 293; //Celsius = K-273 const celsius = kelvin- 273; //Print the output in celsius console.log(`The temprature is ${celsius}°C`) //fahrenheit = Celsius * (9/5) + 32 ; Should be a float let fahrenheit = (celsius * (9/5) + 32) ; //converted fahrenheit to double fahrenheit = Math.floor(fahrenheit); //Print the output in fahrenheit console.log(`The temprature is ${fahrenheit}°F`) //For Newton scale let newton = (celsius * (33/100)); newton = Math.floor(newton); //Print the output in Newton console.log(`The temprature is ${newton}°N.`)

Stargazers:0Issues:1Issues:0