Answer:
The following code is written in C++
#include<iostream.h>
int main()
{
int n;
cin>>" Enter Number>>n;
if(n < 30)
cout<<"Absolute Difference is 30";
}
else
cout<<"Absolute Difference is "<< 2*n;
return 0;
4.7m questions
6.2m answers