Ответ:
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
ll x;
cin>>x;
if(x>0)cout<<x+100<<" ";
else if(x==0)cout<<20<<" ";
else if(x<0)cout<<pow(x,2)<<" ";
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
ll x;
cin>>x;
if(x>0)cout<<x+100<<" ";
else if(x==0)cout<<20<<" ";
else if(x<0)cout<<pow(x,2)<<" ";
return 0;
}