Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.  int a, b, i, p=0;
  6.  cin>>a>>b;
  7.  for(i=1;i<=b;i++)
  8.   p=p+a;
  9.  cout<<p;
  10.  return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement