Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace task_4
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please write a: ");
- int a = int.Parse(Console.ReadLine());
- Console.WriteLine("Please write b: ");
- int b = int.Parse(Console.ReadLine());
- Console.WriteLine("Please write c: ");
- int c = int.Parse(Console.ReadLine());
- int result = a * b * c;
- if (result == 0) Console.WriteLine("0");
- if (result > 0) Console.WriteLine("+");
- if (result < 0) Console.WriteLine("-");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement