Advertisement
Guest User

zad 1

a guest
Dec 13th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.  
  6.     static void Main(string[] args)
  7.     {
  8.         Console.Write("Podaj temperature w celcjuszach: ");
  9.         double c = double.Parse(Console.ReadLine());
  10.  
  11.         double f = Math.Round((9f / 5f) * c + 32, 2);
  12.         Console.Write("{0}C = {1}F", c, f);
  13.         Console.ReadKey(true);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement