Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Feb 23rd, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace _4._08._Scholarship
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double Dohod = double.Parse(Console.ReadLine());
  10.             double SredenUspeh = double.Parse(Console.ReadLine());
  11.             double MinRabZaplata = double.Parse(Console.ReadLine());
  12.  
  13.             double StipSlab = 0.35 * MinRabZaplata;
  14.             double StipOtlich = 25 * SredenUspeh;
  15.             bool Slab = false;
  16.             bool Otlichen = false;
  17.             if((Dohod<MinRabZaplata)&(SredenUspeh>4.5))
  18.             { Slab=true;}
  19.             if (SredenUspeh> 5.5)
  20.             { Otlichen = true; }
  21.  
  22.             if ((Slab == false) & (Otlichen == false))
  23.                 Console.WriteLine("You cannot get a scholarship!");
  24.             else if ((Slab == true) & (Otlichen == false))
  25.                 Console.WriteLine($"You get a Social scholarship {StipSlab:F0} BGN");
  26.             else if ((Slab == false) & (Otlichen == true))
  27.                 Console.WriteLine($"You get a scholarship for excellent results {StipOtlich:F0} BGN");
  28.             else
  29.             {
  30.                 if (StipOtlich > StipSlab)
  31.                     Console.WriteLine($"You get a scholarship for excellent results {StipOtlich:F0} BGN");
  32.                 else
  33.                     Console.WriteLine($"You get a Social scholarship {StipSlab:F0} BGN");
  34.             }
  35.  
  36.         }
  37.     }
  38. }
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