Online C++ compiler to run C++ program online
Download 10.16 Kb. Pdf ko'rish
|
dasturiy injinering (1)
№ Topshiriq raqami Guruh Familiya Ism 20 Amaliy topshiriq 1 21-160 Sunnatullayev Miraziz // Online C++ compiler to run C++ program online #include #include using namespace std; int main() { // Write C++ code here float x, y, A,B,e=2.71; cout << "Enter the value of x: "; cin >> x; cout << "Enter the value of y: "; cin >> y; A = ((pow(sin(x+1), 2) + pow(y, 2) + 1 + x) / (pow(e,x+1) + sqrt(pow(y, 2) + 1))); B = log(abs((A*(y*y+1)-pow(A*(x+1)*y,1/3))/(tan(y*y+1+A)+abs(x-8)))); cout << "Result: " << A << endl; cout<<"Result: "<< B; return 0; } #include #include using namespace std; int main () { int a,b,S,K, x1,x2; cout <<"a=";cin>>a; cout <<"b=";cin>>b; S=a+b; K=a*b; x1=pow(a,2); x2=pow(b,2); cout<<"a+b="< cout<<"b*b="< } #include #include using namespace std; int main () { int a,b,S; cin>>a; cin>>b; S=abs(b-a); cout<<" S= "< } Download 10.16 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling