Advertisement
edutedu

ex 7 pg153

Jan 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. int a,b,i,P=0;
  2. cout<<"a="; cin>>a;
  3. cout<<"b="; cin>>b;
  4. for(i=1; i<=b; i++)
  5. P=P+a;
  6. cout<<P;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement