#include <iostream>
using namespace std;
void input(int &x){
cout<<"Input the value of the variable: ";
cin>>x;
}
void doubles(int &x){
x *= x;
}
int main(){
int x;
input(x);
cout<<"Value of x: "<<x<<endl;
doubles(x);
cout<<"Value of x: "<<x<<endl;
return 0;
}
Comments
Good
output please
Leave a comment