Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Program
  2. {
  3.     static void Main(string[] args)
  4.     {
  5.         Console.WriteLine("\nProsze podac liczbe a");
  6.         /*double a = Convert.ToDouble(Console.ReadLine());*/
  7.           int a = Convert.ToInt32(Console.ReadLine());
  8.         Console.WriteLine("\nProsze podac liczbe b");
  9.         /*double b = Convert.ToDouble(Console.ReadLine());*/
  10.           int b = Convert.ToInt32(Console.ReadLine());
  11.         while (a != b)  /* dopóki a i b nie będą równe*/
  12.         {
  13.             if (a > b)  
  14.                 a = a - b;
  15.             else
  16.                 b = b - a;
  17.         }
  18.         /*double c, d;*/
  19.         /*if (a == b)
  20.         {
  21.             Console.WriteLine("\nNajwiekszy wspolny dzielnik liczb " + a + " i " + b + " to: " + a);
  22.         }
  23.         bool(a != b);
  24.         if (a > b)
  25.         {
  26.             c = a - b;
  27.             Console.WriteLine("\nNajwiekszy wspolny dzielnik liczb " + a + " i " + b + " to: " + c);
  28.         }
  29.         else if (a > b)
  30.         {
  31.             d = b - a;
  32.             Console.WriteLine("\nNajwiekszy wspolny dzielnik liczb " + a + " i " + b + " to: " + d);
  33.         }*/
  34.         Console.WriteLine("NWD wynosi:" + a);
  35.     }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top