Rasm 3 c. Oddiy dasturning blok Sxemasi.
|
Dastur kodi С++ (Visual Studio):
#include "stdafx.h"
#include
#include
using namespace std;
int main(){
double x, y, U, V;
cout<<"Klaviaturadan x ning
qiymatini kiriting x=";
cin>>x;
cout<<"Klaviaturadan yni qiymatini
kiriting y=";
cin>>y;
U=pow(x, 2.0)+(y+3.0)/(x-1.0);
V=1.0/pow(y, exp(1.0))*pow(sin(sqrt(x)+1.5), 2.0);
cout<<"pri x="<y=double(input("y ni kiriting: "))
U=double(input("U ni kiriting: "))
print("Klaviaturadan x ning qiymatini kiriting x="};;
x=double(input("x ni kiriting: "))
print("Klaviaturadan yni qiymatini kiriting y=");
y=double(input("y ni kiriting: "))
U=sqrt(x)+(y+3.0)/(x-1.0);
V=1.0/e*ln(y, exp(1.0))*sqrt(sin(sqrt(x)+1.5));
print(“x=”;x)
print(“y=”;y)
print(“u=”;u)
O’hshash sintaksis konstruktsiyalar Python/C++
|
| |