Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x,r=0,p,cifra;
- cin>>x;
- while(x)
- {
- if(cifra>5)
- {
- r=r+cifra*p;
- }
- }
- cout<<r;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement