Advertisement
Guest User

for fiasko

a guest
Jan 20th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a, b, n,buf;
  6. cin >> a >> b;
  7. buf = b;
  8. if(a >= 1 && a <= 10 && b >= 1 && b <= 10){
  9. for(b;b--;b > 0){n+=a;}
  10. cout << a << "*" << buf << "=" << n;
  11. }
  12. else { cout << "fiasko bratan";}
  13.  
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement