.. | |
.. |
Microsoft Visual C++ 6.0 |
4.019.00.00 |
-16-1 | .. | |||||
.. | ||||||
.. | ||||||
.. | ||||||
2016 .
2. 3
3. 4
2.
: .
1. A B. S.
-:
A, B |
S=A*B |
S |
:
# include <iostream.h>
#include <windows.h>
#include <math.h>
char* Rus(const char* text);
char bufRus[256];
char* Rus(const char* text){
CharToOem(text,bufRus);
return bufRus;
}
void main (void)
{
float A, B, S;
cout << Rus(" . A = ");
cin >> ;
cout << Rus(" . B = ");
cin >> B;
S=A*B;
cout << Rus(" ") << S <<endl;
}
2. .
pi=3.14 s=pi*r*r |
s |
r |
# include <iostream.h>
#include <windows.h>
#include <math.h>
char* Rus(const char* text);
char bufRus[256];
char* Rus(const char* text){
CharToOem(text,bufRus);
return bufRus;
}
void main (void)
{
float pi=3.14, r, s;
const double;
cout << "r=";
cin >> r;
s=pi*r*r;
cout <<Rus ("ïëîùàä êðóãà ðàâíà") << s <<endl;
}
3.
4.
.
1. . , .
2. :
y=sqrt(fabs(exp(2*x))/(3*pow(x,2)-tan(x)))
z=exp(2*x)+log(x-2.1)
y,z
x
|
|
# include <iostream.h>
#include <windows.h>
#include <math.h>
char* Rus(const char* text);
char bufRus[256];
char* Rus(const char* text){
CharToOem(text,bufRus);
return bufRus;
}
void main (void)
{
double x,y,z;
cout << Rus (" x: ");
cin >> x;
y=sqrt(fabs(exp(2*x))/(3*pow(x,2)-tan(x)));
z=exp(2*x)+log(x-2.1);
cout <<Rus (" y : ") << y <<endl;
cout <<Rus (" z : ") << z <<endl;
}
3