Skip to content

Instantly share code, notes, and snippets.

@Simpall1337

Simpall1337/Laba 2

Created Nov 21, 2020
Embed
What would you like to do?
#include <stdio.h>
#include <cmath>
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
setlocale(LC_ALL, "Ukrainian");
cout << "Введiть х" << "\n";
int x, y;
cin >> x;
if (x != 0 && x != 180 && x != 360)
{
y = 1 / sin(x);
cout << "Число вiрне : " << y << endl;
}
else
{
cout << "вихiд з програми, бо неправильний символ" << endl;
cin.clear();
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.