Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x = Convert.ToInt32(Console.ReadLine());
- if (x > 0)
- {
- Console.WriteLine("{0} é um número positivo!", x);
- }
- else if (x < 0)
- {
- Console.WriteLine("{0} é um número negativo!", x);
- }
- else
- {
- Console.WriteLine("{0} é um número neutro!", x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement