Псевдокод :
Начало
объявление целых переменных a и b
ввод a,b
вывод a+b
вывод a*b
Конец
c# :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _1
{
class Program
{
static void Main(string[] args)
{
Console.Write("Число a : ");
int a = int.Parse(Console.ReadLine());
Console.Write("Число b : ");
int b = int.Parse(Console.ReadLine());
Console.WriteLine("Сумма чисел a и b : {0}",a+b);
Console.WriteLine("Произведение чисел a и b : {0}", a*b);
Console.ReadKey();
}
}
}
PascalABC :
var
a,b:integer;
Begin
readln(a,b);
writeln(a+b);
writeln(a*b);
End.
1 - 127 == 128 чисел
128 / 2 == 64 - 1
64 / 2 == 32 -2
32 / 2 == 16 -3
16 / 2 == 8 -4
8 / 2 == 4 - 5
4 / 2 == 2 - 6
2 / 2 == 1 - 7
7 вопросов