kananasgarli90

Cəmin kvadratı

Oct 17th, 2020
402
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cin>>n;
  9.     int a = n/10;
  10.     int b = n%10;
  11.     cout<<pow(a+b, 2)<<endl;
  12.  
  13. }
  14.  
RAW Paste Data