Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int /*tutuaj wpisujesz zmienne np.x,y itd.*/x,y; /* zamiast int moze byc tez double jesli chcesz liczby po przecinku */
  6.  
  7. int main(){
  8. /*tutja wpisujesz swoj kod np. */ cout<<"Podaj x:";
  9. cin>>x;
  10. y=2*x+2;
  11. cout<<"Y wynosi:"<<y;
  12. return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement