-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcelciusToFahrenite.js
31 lines (21 loc) · 978 Bytes
/
celciusToFahrenite.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// function celciusToFahrenite(celcius){
// const fahrenite =celcius + 273;
// return fahrenite;
// }
// const myTempreture = 200;
// const result =celciusToFahrenite(myTempreture);
// console.log('sayem ar tempreture',result);
// const munTempreture = 350;
// const munResult =celciusToFahrenite(munTempreture);
// console.log('mun ar tempreture',munResult);
//------------------------------------------------------------------------------------------------------------------------------------- fahenite to celcius -------------------------------------------------------------------------------------------
function FahreniteTocelcius(fahrenite){
const celcius =fahrenite - 273;
return celcius;
}
const suhanaTempreture = 200;
const result =FahreniteTocelcius(suhanaTempreture);
console.log('suhana ar tempreture',result);
const suniahTempreture = 350;
const Result =FahreniteTocelcius(suniahTempreture);
console.log('suniah ar tempreture',Result);