#include<iostream> using namespace std; int main () { int p; bool flag; cout<<"Please enter 1 to double the value of your number\n"; cin>>flag; if(flag==true) { cout<<"Enter your number\n"; cin>>p; cout<<2*p<<endl; cout<<"Thank you"<<endl; } else { cout<<"Have a pleasent day"<<endl; } return 0; } |