Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
243 B
0
Indexable
Never

#include <iostream>

using namespace std;
int main()
{
int k, b;
  cin >> k >> b;
  int mas[101] = {};
  for(int x = 0; x <= 100; x++){
     int y = k * x + b;
      mas[x]= y;
       cout << 'y' << '(' << x << ')' << '=' << y << endl;
  }
}
Leave a Comment