fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. float c = 100;
  8.  
  9. //stopnie farenheita
  10. float f = 32 + ( ( 9 / 5) * c );
  11. //stopnie kelvina
  12. float k = c + 273;
  13. Console.WriteLine("Temperatura w stopniach celsjusza " + c);
  14. Console.WriteLine("Temperatura w stopniach farenheita " + f);
  15. Console.WriteLine("Temperatura w stopniach kelvina " + k);
  16.  
  17.  
  18. Console.ReadLine();
  19.  
  20. }
  21. }
Success #stdin #stdout 0.02s 16044KB
stdin
Standard input is empty
stdout
Temperatura w stopniach celsjusza 100
Temperatura w stopniach farenheita 132
Temperatura w stopniach kelvina 373