1)
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
cout << "V = " << x * x * x << endl << "S = " << x * x;
system("pause");
return 0;
}
2)
double a, b;
cin >> a >> b;
if (a > b) {
cout << "a > b " << endl << a;
else {
cout << "a <= b " << endl << a << b;
3)
if (x % 2 == 0) cout << "YES";
else cout << "NO";
cout << endl;
if (x % 10 == 3) cout << "YES";
Поделитесь своими знаниями, ответьте на вопрос:
Параметрлі циклдың денесі деген не?
1)
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
cout << "V = " << x * x * x << endl << "S = " << x * x;
system("pause");
return 0;
}
2)
#include <iostream>
using namespace std;
int main() {
double a, b;
cin >> a >> b;
if (a > b) {
cout << "a > b " << endl << a;
}
else {
cout << "a <= b " << endl << a << b;
}
system("pause");
return 0;
}
3)
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
if (x % 2 == 0) cout << "YES";
else cout << "NO";
cout << endl;
if (x % 10 == 3) cout << "YES";
else cout << "NO";
cout << endl;
system("pause");
return 0;
}