StoneHaos

lab16

Dec 16th, 2019
167
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // test.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <stdio.h>
  6. #include <iostream>
  7.  
  8. using namespace std;
  9.  
  10. int main(void) {
  11.     unsigned short int a, b, c;
  12.     cin >> a >> b;
  13.     c = (a & 0xf0f0) + (b & 0x0f0f);
  14.     cout << c << "\n";
  15.     return 0;
  16. }
RAW Paste Data