Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
/** 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));
}
старше будет девочка потому что там написано втрое
// pascalabc.net
// версия 3.3.5 сборка 1662 (29.04.2018)
а
begin
println('кол-во символов -',readstring('слово-> ').length)
end.
пример:
741258963
кол-во символов - 9
б
var s: =readstring('слово-> ').tolower;
println(s[1]=s[s.length]? '': 'не ');
слово-> олово
в
var s: =readstring('слово-> ');
println(s[1],s[2],s[s.length]);
слово-> плотина
п л а
г
println(readstring('слово-> ').length mod 2=0? 'четно': 'нечетно');
слово-> виноград
четно
Популярные вопросы