Добавил:
brtiykihtt23
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабы / T21-2
.cpp#include <iostream>
#include <stdio.h>
#include <cmath>
using namespace std;
main ()
{
int x, y;
int i;
while (i < 6)
{
cout << "Enter " << i << "-th x: ";
cin >> x;
if (x < 0)
y = 10*x+3;
else
y = 100*x;
cout << i << "function y: " << y << endl;
i++;
}
}