Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <math.h>
- using namespace std;
- void main() {
- setlocale(LC_ALL, "Russian");
- int r;
- int t;
- int s;
- cout<<"Введите r: ";
- cin>>r;
- cout<<endl;
- cout<<"Введите t: ";
- cin>>t;
- cout<<endl;
- cout<<"Введите s: ";
- cin>>s;
- cout<<endl;
- s+=r-- - --t;
- cout<<"Значение t после расчета: "<<t<<endl;
- t = t << 2;
- cout<<"Значение t после сдвига: "<<t<<endl;
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement