Advertisement
Ravenbvutt

Untitled

Sep 30th, 2017
10,759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. /* CODING by ARTHUR #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. cout << "Hello nigga" << endl;
  8. string req;
  9. cin >> req;
  10. if (req == "kek") {
  11. cout << "YOU FUCKING NIGGA BRO!" << endl;
  12. }
  13. else {
  14. cout << "YOU DONT NIGGA" << endl;
  15. }
  16. system ("pause");
  17. return 0;
  18. }
  19.  
  20. */
  21. /*
  22. #include <iostream>
  23. #include <string>
  24.  
  25. using namespace std;
  26.  
  27. int main()
  28. {
  29. setlocale(LC_ALL, "RUSSIAN");
  30. string str;
  31.  
  32. cout << "ââåäèòå âàøå èìÿ: ";
  33. getline(cin, str);
  34.  
  35. cout << "Ïðèâåò, " << str << "! \n";
  36. system("chcp 1251"); // èñïðàâëÿåì êàðàêóëè ïðè ââîäå äàííûõ
  37. return 0;
  38. }
  39.  
  40. */
  41.  
  42. // LAB #1
  43. //#include <iostream>
  44. //#include <math.h>
  45. //using namespace std;
  46. //
  47. //int main()
  48. //{
  49. // double PI,R,square;
  50. // PI = 3.14159;
  51. // cout << "Input length:" << endl;
  52. // cin >> R;
  53. // square = PI*pow(R,2);
  54. // cout << "Square: " << square << endl;
  55. // system("pause");
  56. // return 0;
  57. //}
  58.  
  59.  
  60. //LAB #2
  61. //#include <iostream>
  62. //#include <math.h>
  63. //#include <conio.h>
  64. //using namespace std;
  65. //int main ()
  66. //{
  67. //int x1, y1, x2, y2;
  68. //cout << "Enter coord x1: ";
  69. //cin >> x1;
  70. //cout << "Enret coord y1: ";
  71. //cin >> y1;
  72. //cout << "Enter coord x2: ";
  73. //cin >> x2;
  74. //cout << "Enter coord y2: ";
  75. //cin >> y2;
  76. //if (x1 == x2 || y1 == y2 || fabs(x1-y1) == fabs(x2-y2))
  77. //cout << "You can! \n";
  78. //else
  79. //{
  80. //cout << "You cannot move in 1 step. You can move into [" << x1 << ";" << y2 << "] to move to ["<< x2 << ";" << y2 <<"] \n";
  81. //}
  82. //getch ();
  83. //return 0;
  84. //
  85. //}
  86.  
  87.  
  88. //LAB #3
  89. //
  90. //#include <iostream>
  91. //using namespace std;
  92. //int main ()
  93. //{
  94. // double a, b;
  95. // int x;
  96. //
  97. // a = 1.3;
  98. // b = 10.23;
  99. //
  100. // cout << "Enter the number: ";
  101. // cin >> x;
  102. //
  103. // if (a < x && x <= b)
  104. // {
  105. // cout << "lie on the interval (1.3; 10.23]" << endl;
  106. // }
  107. // else
  108. // {
  109. // cout << "does not lie on the interval (1.3; 10.23]" <<endl;
  110. // }
  111. // system ("pause");
  112. // return 0;
  113. //
  114. //}
  115.  
  116. //LAB #4
  117. //#include <iostream>
  118. //#include <math.h>
  119. //using namespace std;
  120. //int main ()
  121. //{
  122. // int x,y, e = 1;
  123. // double M;
  124. //
  125. // cout << "Enter the number x: ";
  126. // cin >> x;
  127. // cout << "Enter the number y: ";
  128. // cin >> y;
  129. //
  130. // M = (1.17 * log(sqrt(1 + pow(cos(y),2)))) / (pow(e,y) + pow(sin(x),2));
  131. //
  132. // cout << M << endl;
  133. //
  134. // system ("pause");
  135. // return 0;
  136. //
  137. //
  138. //}
  139.  
  140. //LAB #2.1
  141. #include <iostream>
  142. #include <math.h>
  143. using namespace std;
  144. int main ()
  145. {
  146.  
  147. }
  148.  
  149. //LAB #2.2
  150. //#include <iostream>
  151. //#include <math.h>
  152. //using namespace std;
  153. //int main ()
  154. //{
  155. // double a, b, x, y, Max;
  156. // cout << "Input start point = ";
  157. // cin >> a;
  158. // cout << "Input finish point = ";
  159. // cin >> b;
  160. //
  161. // Max = a*sin(a);
  162. //
  163. // for (x = a; x <= b; x += 0.001)
  164. // {
  165. // y = x *sin(x);
  166. // if (y > Max)
  167. // {
  168. // Max = y;
  169. // }
  170. // }
  171. // cout << "Max result: " << Max << endl;
  172. // system ("pause");
  173. // return 0;
  174. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement