Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- int t;
- cin>>t;
- while(t--){
- long long int a;
- cin>>a;
- if(a==2)
- cout<<4<<" "<<8<<"\n";
- else
- cout<<2*a<<" "<<a*a<<"\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment