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 ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = 5;
- for (int i = 2; i<a; i++)
- {
- if (a%i == 0)
- {
- Console.WriteLine("to nie jest liczba p-sza");
- break;
- }
- else
- Console.WriteLine({ 0} jest liczba p - sza, { a});
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement