Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- int a=2;
- int num = int.Parse(Console.ReadLine());
- for (int i = 0; i < 1; )
- {
- if (num == a)
- {
- Console.WriteLine("mispar rishoni");
- i++;
- }
- else if (num % a != 0) a++;
- else
- {
- Console.WriteLine("mispar parik");
- i++;
- }
- }
- }
Add Comment
Please, Sign In to add comment