Advertisement
Ziomnexpl

test 1 C#

Nov 20th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Test1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Double a, b;
  10.             Console.WriteLine("Wpisz liczbฤ™ do podzielenia");
  11.             a = Convert.ToDouble(Console.ReadLine());
  12.             Console.WriteLine("Wpisz dzielnik");
  13.             b = Convert.ToDouble(Console.ReadLine());
  14.             if (b == 0)
  15.             {
  16.                 Console.WriteLine("Pamietaj chemiku mlody");
  17.                 Console.WriteLine("Nie dziel przez zero ty kurwo jebana");
  18.             }
  19.             else
  20.             {
  21.                 Double wynik;
  22.                 wynik = a / b;
  23.                 Console.WriteLine("Wynik = " + wynik);
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement