Initial commit

This commit is contained in:
2022-04-28 04:34:45 +03:00
commit 4c0cdb2f71
30 changed files with 1218 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <iostream>
using namespace std;
int main(){
/* Ввод
Синтаксис: устройство >> переменная
cin - console input - консоль как устройство ввода
>> оператор ввода
*/
float num;
cout << "Введи число: "; // *Отсутствует endl
cin >> num;
cout << "Число в квадрате: " << num * num << endl;
printf("Введи число: ");
scanf("%f", &num); // Ввод в стиле C
printf("Число, умноженное на 5: %f\n", num * 5);
return 0;
}