Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int x;
- cout <<"Podaj liczbe"<<endl;
- cin>>x;
- if (x=!0)
- }
- cout<<"Reszta z dzielenia przez 3 wynosi: "<<x%3<<endl<<"Reszta z dzielenia przez 5 wynosi: "<<x%5<<endl<<"Reszta z dzielenia przez 7 wynosi: "<<x%7<<endl;
- system("pause");
- }
- else
- {
- cout<<"Nie dziel przez zero-_-"<<endl;
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement