Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b, n,buf;
- cin >> a >> b;
- buf = b;
- if(a >= 1 && a <= 10 && b >= 1 && b <= 10){
- for(b;b--;b > 0){n+=a;}
- cout << a << "*" << buf << "=" << n;
- }
- else { cout << "fiasko bratan";}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement