Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int a, p, max, i=0, suma, d;
- do{
- cout<<"Podaj p z przedzialu (0,9>\n";
- cin>>p;
- }while(p=<0&&p>9);
- cout<<"Wpisuj liczby";
- do{
- cin>>a;
- if ((a%p)=0){
- i++;
- suma=suma+a
- };
- }while(a>0)
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement