Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1.  
  2. namespace ConsoleApplication2
  3. {
  4.     class Program
  5.     {
  6.         static void Main(string[] args)
  7.         {
  8.            // Console.WriteLine("Hello, World!");
  9.             //Console.Read();
  10.  
  11.             /*
  12.             int x, y, z;
  13.             Console.WriteLine("Podaj bok a");
  14.             x = int.Parse(Console.ReadLine());
  15.             Console.WriteLine("Podaj bok b");
  16.             y = int.Parse(Console.ReadLine());
  17.             Console.WriteLine("Wynik");
  18.             z = x * y;
  19.             Console.WriteLine(z);
  20.             */
  21.  
  22.             /*                  
  23.             int x = 5;
  24.             int y = 2;
  25.             x = int.Parse(Console.ReadLine());
  26.             Console.WriteLine(x / y);
  27.              */
  28.  
  29.             int kurs_USD = 3;
  30.             int kwota_PLN;
  31.             Console.WriteLine("Podaj kwotę w PLN");
  32.             kwota_PLN = int.Parse(Console.ReadLine());
  33.             Console.WriteLine(kurs_USD * kwota_PLN);
  34.  
  35.  
  36.          
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement