SHARE
TWEET

Multiplication Sign (ne razbiram shto mi dava WA)

MartinTopchiev2 Nov 22nd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace MultiplicationSIgn
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double a = int.Parse(Console.ReadLine());
  10.             double b = int.Parse(Console.ReadLine());
  11.             double c = int.Parse(Console.ReadLine());
  12.             if (a > 0 && b > 0 && c > 0)
  13.             {
  14.                 Console.WriteLine("+");
  15.             }
  16.             else if (a < 0 || b < 0 && c > 0)
  17.             {
  18.                 Console.WriteLine("-");
  19.             }
  20.             else if (a == 0 || b == 0 || c == 0)
  21.             {
  22.                 Console.WriteLine("0");
  23.             }
  24.         }
  25.     }
  26. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top