This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
// 1 | |
int a() { | |
int x, y = 0; | |
cout << "Число: "; | |
cin >> x; | |
for (int i = 1; i <= x; i++) y = y + i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include <iostream> | |
#include <cmath> | |
using namespace std; | |
// 1 | |
void task1() { | |
int number; | |
cout << "Введите целое число: "; | |
cin >> number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Задание 1 | |
#include <iostream> | |
#include <cmath> | |
int main() { | |
double dlina, shirina, p4, s; | |
std::cout << "Введите длину прямоугольника: "; | |
std::cin >> dlina; |