Xлежит вне отрезков [2,15]или[-108,-5] язык c++ в чём ошибка #include "stdafx.h" #include #include #include using namespace std; int _tmain(int argc, _tchar* argv[]) { int x; scanf("%d",& x); ; if((x< =2 & & 15 > =-108 & & -5)) {; cout< < "-"; } ; else cout< < "+"; ; system("pause"); return 0;
297
386
Ответы на вопрос:
//у нас убивают за такой кодстайл, легче переписать. //dev-c++ 4.9.9.2 #include < iostream> using namespace std; int main(){ setlocale(lc_ctype,"russian"); int x=0; cin> > x; > =2)& & (x< =15))||((x> =-108)& & (x< =- cout< < "нет"; else cout< < "да"; cin.get(); cin.get(); return 0; } пример ввода: 1 пример вывода: да
For i: = 15 downto 1 do begin z: = sin(i) - i*(1/2)+2.73; write(i,z); z: =0; end;
Популярно: Информатика
-
magomed20049512.01.2023 07:35
-
Ppoligoon07.11.2022 02:22
-
Juliabelich200414.01.2021 21:32
-
DilulRi24.06.2021 12:36
-
antanika200008.01.2021 22:08
-
alya15906.02.2021 10:15
-
kurokislip19.03.2020 05:11
-
Aresn07.09.2021 06:33
-
lesa1812.02.2020 17:02
-
alexandrapavlov117.05.2023 06:11