Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.86 KB | None | 0 0
  1. include "pch.h"
  2.  
  3. #include <cmath>
  4.  
  5. #include <math.h>
  6.  
  7. #include <cstdlib>
  8.  
  9. #include <fstream>
  10.  
  11. #include <iostream>
  12.  
  13. #include <string>
  14.  
  15. #include <Windows.h>
  16.  
  17. #include <stdlib.h>
  18.  
  19. #define graphic(x) (sin(x))
  20.  
  21. using namespace std;
  22.  
  23.  
  24.        {
  25.  
  26.            int x, y, z;
  27.  
  28.            cout << "2548B5 =0G0;L=>5 7=0G5=85.\n\n";
  29.  
  30.            cin >> x;
  31.  
  32.            cout << "K15@8B5 20@80=B 35=5@0B>@0(1 8;8 2).\n\n";
  33.  
  34.            cin >> y;
  35.  
  36.            cout << "2548B5 :>;8G5AB2> 35=5@8@5<KE G8A5;.\n\n";
  37.  
  38.            cin >> z;
  39.  
  40.            cout << "\n";
  41.  
  42.            if (y == 1)
  43.  
  44.            {
  45.  
  46.                for (int i = 0; i < z; i++)
  47.  
  48.                {
  49.  
  50.                    x = (37 * x + 3) % 64;
  51.  
  52.                    cout << x << " ";
  53.  
  54.                }
  55.  
  56.                cout << "\n";
  57.  
  58.            }
  59.  
  60.            else if (y == 2)
  61.  
  62.            {
  63.  
  64.                for (int i = 0; i < z; i++)
  65.  
  66.                {
  67.  
  68.                    x = (25173 * x + 13849) % 65537;
  69.  
  70.                    cout << x << " ";
  71.  
  72.                }
  73.  
  74.                cout << "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement