lab1_44

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <math.h> using namespace std; //вариант 44 int main() { double result; int x; //collecting data cout<<"Input X value:"<<endl; cin>>x; //controling the data if(x>0) { //computing the result result=(sqrt(x+1)+sqrt(x-1))/(2*sqrt(x)); cout<<"The result is :"<<result<<endl; }else cout<<"Error, input a correct number"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines