Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a,b,i,P=0;
- cout<<"a="; cin>>a;
- cout<<"b="; cin>>b;
- for(i=1; i<=b; i++)
- P=P+a;
- cout<<P;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement