Advertisement
Nexon

Untitled

Dec 9th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <math.h>
  4.  
  5. using namespace std;
  6.  
  7. void main() {
  8.     setlocale(LC_ALL, "Russian");
  9.  
  10.     int r;
  11.     int t;
  12.     int s;
  13.    
  14.     cout<<"Введите r: ";
  15.     cin>>r;
  16.     cout<<endl;
  17.  
  18.     cout<<"Введите t: ";
  19.     cin>>t;
  20.     cout<<endl;
  21.  
  22.     cout<<"Введите s: ";
  23.     cin>>s;
  24.     cout<<endl;
  25.  
  26.     s+=r-- - --t;
  27.     cout<<"Значение t после расчета: "<<t<<endl;
  28.     t = t << 2;
  29.     cout<<"Значение t после сдвига: "<<t<<endl;
  30.  
  31.     system("PAUSE");
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement