Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  lb1.cpp
Language: C/C++
Code:
#include <iostream> 
#include <cmath> 
using namespace std; 
int main() 

setlocale(LC_ALL,"Russia"); 
double a,y,z; 
cout<<"Введите число a="; 
cin>> a; 
y=(((a+2)/(sqrt(2*a)))-(a/(sqrt(2*a)+2))+(2/(a-sqrt(2*a))))*((sqrt(a)-sqrt(2))/(a+2)); 
z=1/(sqrt(a)+sqrt(2)); 
cout<<"Y="<<y<<" Z="<<z; 
return 0; 
}
Comments: