Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema 451
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- if (n<=15)
- cout<<n*n;
- else
- if ((n>=16) and (n<=30))
- cout<<(n%10)+(n/10);
- else
- cout<<(n%10)*(n/10);
- return 0;
- }
Add Comment
Please, Sign In to add comment