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;
- namespace ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- bool rishoni = true;
- for (int i = 2; i < num / 2; i++)
- {
- if (num % i == 0) rishoni = false;
- }
- if (rishoni == false) Console.WriteLine("Parik!");
- else
- Console.WriteLine("Rishoni!");
- Console.Read();
- }
- }
- }
Add Comment
Please, Sign In to add comment