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 sudá_lichá
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Zadejte číslo: ");
- int cislo = int.Parse(Console.ReadLine());
- if (cislo % 2 == 0)
- {
- Console.WriteLine("Číslo je sudé.");
- } else {
- Console.WriteLine("Číslo je liché.");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement