Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MultiplicationSign
- {
- static void Main()
- {
- Console.WriteLine("Enter first number.");
- double a = double.Parse(Console.ReadLine());
- Console.WriteLine("Enter second number.");
- double b = double.Parse(Console.ReadLine());
- Console.WriteLine("Enter third number.");
- double c = double.Parse(Console.ReadLine());
- double result = a * b * c;
- if (result < 0)
- {
- Console.WriteLine("The multiplication sign of the three numbers is: -");
- }
- else if (result == 0)
- {
- Console.WriteLine("The multiplication result is: 0");
- }
- else
- {
- Console.WriteLine("The multiplication sign of the three numbers is: +");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement