Untitled
Guest 958 16th Aug, 2022
#include<iostream>
using namespace std;
int main()
{
int n;
bool test =true;
cout<<"Podaj liczbę: ";
cin>>n;
if(n<2){
cout<<"to nie jest licza pierwsza";
test = false;
}
for(int i=2;i<n;i++)
if(n%i==0){
cout<<"to nie jest licza pierwsza"<<endl;
test = false;
break;
}
if(test != false)
cout<<"to jest licza pierwsza";
return 0;
}
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- C.H.1.L.Ds Vids-Pics Updated May 09
Markup | 9 | 3 hours ago
- Как повлияла пандемия на куринные крылышки
Dart | 14 | 10 hours ago
- Wanted to apprehend what your conception is on this point
Smarty | 13 | 12 hours ago
- Untitled
Markup | 125 | 16 hours ago
- Untitled
Markup | 23 | 16 hours ago
- Автосервис Ярославль
Bro | 115 | 16 hours ago
- Untitled
C# | 24 | 21 hours ago