CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*Better to run this code in Visual Studio or Visual Studio code because there is inputs in while.
Лучше запускать это в Visual Studio или Visual Studio Code так как тут есть input'ы в цикле while.*/
/*Special thanks for Bob_Li and NB for help when me had a problem in the code.
Отдельное спасибо Bob_Li и NB за помощь когда у меня была проблема в коде.*/
using System;
namespace Programm
{
class Calculator
{
public static void Main(string[] args)
{
Console.WriteLine("Pls select what bits version do you want to use(16 or 32)");
string bits = Console.ReadLine();
if(bits=="16")
{
int FirstNum = 0;
int SecondNum = 0;
int FNumCC = 0;
int SNumCC = 0;
char Option = '#';
int Infinity = 0;
int Exit = 0;
while(Infinity==0)
{
Console.WriteLine("Write the first number.(if you want to exit: write Exit)");
string FNum = Console.ReadLine();
int FirstN = Convert.ToInt16(FNum);
Console.WriteLine("Write the second number.(if you want to exit: write Exit)");
OUTPUT
Run