Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. int pocz_x, kon_x, a, b, y;
  2. cout<<"Wpisz poczatek przedzialu: ";
  3. cin>>pocz_x;
  4. cout<<"Wpisz koniec przedzialu: ";
  5. cin>>kon_x;
  6. cout<<"Wpisz parametr a: ";
  7. cin>>a;
  8. cout<<"Wpisz parametr b: ";
  9. cin>>b;
  10. for(int i = 1;pocz_x<=kon_x;pocz_x++, i++){
  11. y = a * pocz_x + b;
  12. cout<<"Dla argumentu "<<pocz_x<<", y = "<<y<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement