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.Numerics;
- namespace methods_exerci
- {
- class Program
- {
- static void Main(string[] args)
- {
- int result = 0;
- Multiplication(result);
- }
- static void Multiplication(int result)
- {
- bool nula = false;
- for (int i = 0; i < 3; i++)
- {
- int number = int.Parse(Console.ReadLine());
- if (number == 0)
- {
- nula = true;
- }
- if (number < 0)
- {
- result++;
- }
- }
- if (nula)
- {
- Console.WriteLine("zero");
- }
- else
- {
- if (result % 2 == 0)
- {
- Console.WriteLine("positive");
- }
- else
- {
- Console.WriteLine("negative");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement