Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int /*tutuaj wpisujesz zmienne np.x,y itd.*/x,y; /* zamiast int moze byc tez double jesli chcesz liczby po przecinku */
- int main(){
- /*tutja wpisujesz swoj kod np. */ cout<<"Podaj x:";
- cin>>x;
- y=2*x+2;
- cout<<"Y wynosi:"<<y;
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement