Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
/** libraries */
#include <iostream>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
/** defines */
#define ll long long
#define ld long double
#define yes cout << "YES" << "\n"
#define no cout << "NO" << "\n"
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
ld x;
cin >> x;
if(x < 5)
cout << sin(2*x + 3);
else if(x < 8)
cout << 3*x + 2 * pow(x,3);
else
cout << (3*x-2)/(1 + pow(x,2));
}
program kvadrat;
var i : integer;
begin
for i: = 10 to 100 do
writeln ( i: 2, i*i : 5);
readln;
end.
2, 4, 8, 16 (двоичная (10000), четверичная (100), восьмеричная (20), шестнадцатеричная (10))
Популярные вопросы