eolymp
bolt
Try our new interface for solving problems
Məsələlər

İkirəqəmli ədədin rəqəmlərinin yerdəyişməsi

dərc olunub 16.04.24 15:01:31

include<iostream>

include<cmath>

using namespace std; class Demo{ private: int n; public: void setNum(int n){ this->n=n; } int getNum(){ return n; } }; int main(){ Demo d; int n; cin>>n; d.setNum(n); int n2=d.getNum()/10; int n3=d.getNum()%10; cout<<n3<<n2;

}

dərc olunub 28.04.24 14:16:21

include <bits/stdc++.h>

define ll long long int

define ld long double

using namespace std; int main() { iosbase::syncwith_stdio(0); cin.tie(0); cout.tie(0); ll x,y,z; cin>>x; y=x/10; z=x%10; cout<<z<<y; } //SANS NEVER DIES...