Untitled
#include <iostream> using namespace std; #include <SFML/Graphics.hpp> #include <conio.h> #include <stdio.h> #include <cstdlib> #include <time.h> int main() { cout << "tretiy \n"; unsigned char a = 13; unsigned char b = 3; unsigned char step = 1 ; //3 cout << (~b) << '\n'; cout << (a ^ b) << '\n'; cout << (b >> step) << '\n'; //1 cout << " perviy \n"; a = 15; b = 8; step = 3; cout << (a & b) << '\n'; cout << (a ^ b) << '\n'; cout << (a >> step) << '\n'; //2 cout << " vtoroy \n"; a = 12; b = 7; step = 1; cout << (a | b) << '\n'; cout << (a ^ b) << '\n'; cout << (a << b) << '\n'; //4 cout << "chetvertiy \n"; a = 11; b = 9; step = 4; cout << (~a) << '\n'; cout << (a ^ b) << '\n'; cout << (b << step) << '\n' << ' ' << '\n'; for (int i = 0; i < 999; i++) { cout << i * i << '\n'; } }
Leave a Comment