Перевести из 2 в 10 систему 1100000,1100100,1011110 и из 10 в 2 95,60,72,42.
175
176
Ответы на вопрос:
1100000=96 1100100=100 1011110=94 95=1011111 60=11100 72=1001000 42=101010
Using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace сишарп { class program { static void main(string[] args) { console.write("введите натуральное число: "); int c = int.parse(console.; console.write("a = "); int a = int.parse(console.; while (c > 0) { if (c % 10 == a) a = -1; c /= 10; } console.writeline((a > -1? "верно": "не верно")); console.readkey(); } } }
Популярно: Информатика
-
Tonibaskakov22.12.2021 02:23
-
kravchenkonata1413.01.2023 01:09
-
Вппгш16.10.2022 08:25
-
Лина199013.11.2022 00:17
-
znayka00114.11.2021 08:29
-
nadiushenica25.06.2022 00:37
-
Slendergirl34521.08.2022 19:12
-
епклсзкищут10.06.2020 11:21
-
Edam30.01.2021 13:28
-
Mashavyd14.01.2021 18:45