Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CODING by ARTHUR #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- cout << "Hello nigga" << endl;
- string req;
- cin >> req;
- if (req == "kek") {
- cout << "YOU FUCKING NIGGA BRO!" << endl;
- }
- else {
- cout << "YOU DONT NIGGA" << endl;
- }
- system ("pause");
- return 0;
- }
- */
- /*
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "RUSSIAN");
- string str;
- cout << "ââåäèòå âàøå èìÿ: ";
- getline(cin, str);
- cout << "Ïðèâåò, " << str << "! \n";
- system("chcp 1251"); // èñïðàâëÿåì êàðàêóëè ïðè ââîäå äàííûõ
- return 0;
- }
- */
- // LAB #1
- //#include <iostream>
- //#include <math.h>
- //using namespace std;
- //
- //int main()
- //{
- // double PI,R,square;
- // PI = 3.14159;
- // cout << "Input length:" << endl;
- // cin >> R;
- // square = PI*pow(R,2);
- // cout << "Square: " << square << endl;
- // system("pause");
- // return 0;
- //}
- //LAB #2
- //#include <iostream>
- //#include <math.h>
- //#include <conio.h>
- //using namespace std;
- //int main ()
- //{
- //int x1, y1, x2, y2;
- //cout << "Enter coord x1: ";
- //cin >> x1;
- //cout << "Enret coord y1: ";
- //cin >> y1;
- //cout << "Enter coord x2: ";
- //cin >> x2;
- //cout << "Enter coord y2: ";
- //cin >> y2;
- //if (x1 == x2 || y1 == y2 || fabs(x1-y1) == fabs(x2-y2))
- //cout << "You can! \n";
- //else
- //{
- //cout << "You cannot move in 1 step. You can move into [" << x1 << ";" << y2 << "] to move to ["<< x2 << ";" << y2 <<"] \n";
- //}
- //getch ();
- //return 0;
- //
- //}
- //LAB #3
- //
- //#include <iostream>
- //using namespace std;
- //int main ()
- //{
- // double a, b;
- // int x;
- //
- // a = 1.3;
- // b = 10.23;
- //
- // cout << "Enter the number: ";
- // cin >> x;
- //
- // if (a < x && x <= b)
- // {
- // cout << "lie on the interval (1.3; 10.23]" << endl;
- // }
- // else
- // {
- // cout << "does not lie on the interval (1.3; 10.23]" <<endl;
- // }
- // system ("pause");
- // return 0;
- //
- //}
- //LAB #4
- //#include <iostream>
- //#include <math.h>
- //using namespace std;
- //int main ()
- //{
- // int x,y, e = 1;
- // double M;
- //
- // cout << "Enter the number x: ";
- // cin >> x;
- // cout << "Enter the number y: ";
- // cin >> y;
- //
- // M = (1.17 * log(sqrt(1 + pow(cos(y),2)))) / (pow(e,y) + pow(sin(x),2));
- //
- // cout << M << endl;
- //
- // system ("pause");
- // return 0;
- //
- //
- //}
- //LAB #2.1
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main ()
- {
- }
- //LAB #2.2
- //#include <iostream>
- //#include <math.h>
- //using namespace std;
- //int main ()
- //{
- // double a, b, x, y, Max;
- // cout << "Input start point = ";
- // cin >> a;
- // cout << "Input finish point = ";
- // cin >> b;
- //
- // Max = a*sin(a);
- //
- // for (x = a; x <= b; x += 0.001)
- // {
- // y = x *sin(x);
- // if (y > Max)
- // {
- // Max = y;
- // }
- // }
- // cout << "Max result: " << Max << endl;
- // system ("pause");
- // return 0;
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement