#savol
#javob
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int ishora = 1;
double m, s, yigindi = 0;
System.out.print("n = ");
int n = scanner.nextInt();
System.out.print("x = ");
double x = scanner.nextDouble();
x = x * Math.PI / 180;
yigindi = x;
for (int i = 3; i <= n; i += 2) {
ishora = ishora * (-1);
s = 1;
m = 1;
for (int j = 1; j <= i; j++) {
s = s * x;
m = m * j;
}
yigindi += ishora * s / m;
}
System.out.println("Sin(yig'indi) = " + Math.sin(yigindi));
System.out.println("Natija = " + yigindi);
}
Telegram | Viktorina bot | YouTube
#javob
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int ishora = 1;
double m, s, yigindi = 0;
System.out.print("n = ");
int n = scanner.nextInt();
System.out.print("x = ");
double x = scanner.nextDouble();
x = x * Math.PI / 180;
yigindi = x;
for (int i = 3; i <= n; i += 2) {
ishora = ishora * (-1);
s = 1;
m = 1;
for (int j = 1; j <= i; j++) {
s = s * x;
m = m * j;
}
yigindi += ishora * s / m;
}
System.out.println("Sin(yig'indi) = " + Math.sin(yigindi));
System.out.println("Natija = " + yigindi);
}
Telegram | Viktorina bot | YouTube
👍2❤1👏1
#savol
#javob
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int ishora = -1;
double m, s, yigindi = 0;
System.out.print("n = ");
int n = scanner.nextInt();
System.out.print("x = ");
double x = scanner.nextDouble();
x = x * Math.PI / 180;
s = x * x;
m = 2;
yigindi = 1 - s / m;
for (int i = 2; i <= n; i++) {
ishora *= -1;
s *= x * x;
m *= (2 * i - 1) * 2 * i;
yigindi += ishora * s / m;
}
System.out.println("Natija = " + yigindi);
}
Telegram | Viktorina bot | YouTube
#javob
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int ishora = -1;
double m, s, yigindi = 0;
System.out.print("n = ");
int n = scanner.nextInt();
System.out.print("x = ");
double x = scanner.nextDouble();
x = x * Math.PI / 180;
s = x * x;
m = 2;
yigindi = 1 - s / m;
for (int i = 2; i <= n; i++) {
ishora *= -1;
s *= x * x;
m *= (2 * i - 1) * 2 * i;
yigindi += ishora * s / m;
}
System.out.println("Natija = " + yigindi);
}
Telegram | Viktorina bot | YouTube
👍3🔥1🤩1
#javob_cpp_boolean_14
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
boolean = ((a > 0) && (b < 0) && (c < 0)) ((a < 0) && (b > 0) && (c < 0)) ((a < 0) && (b < 0) && (c > 0));
cout << boolean;
}
Telegram | Viktorina bot | YouTube
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
boolean = ((a > 0) && (b < 0) && (c < 0)) ((a < 0) && (b > 0) && (c < 0)) ((a < 0) && (b < 0) && (c > 0));
cout << boolean;
}
Telegram | Viktorina bot | YouTube
👍6🔥2👏2
#javob_cpp_boolean_15
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
boolean = ((a > 0) && (b > 0) && (c < 0)) ((a < 0) && (b > 0) && (c > 0)) ((a > 0) && (b < 0) && (c > 0));
cout << boolean;
}
Telegram | Viktorina bot | YouTube
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
boolean = ((a > 0) && (b > 0) && (c < 0)) ((a < 0) && (b > 0) && (c > 0)) ((a > 0) && (b < 0) && (c > 0));
cout << boolean;
}
Telegram | Viktorina bot | YouTube
👍3🤩1
This media is not supported in your browser
VIEW IN TELEGRAM
Assalomu alaykum bu kanalda
-Udemy platformasing kurslari
-Frontendga doir amaliy ishlar
-Antiviruslar
-Dasturlar
-Kompyuterga oid malumotlar topishingiz mumkin
Link 👉👉 Telegram || Guruh
-Udemy platformasing kurslari
-Frontendga doir amaliy ishlar
-Antiviruslar
-Dasturlar
-Kompyuterga oid malumotlar topishingiz mumkin
Link 👉👉 Telegram || Guruh
👍1
#javob_cpp_boolean_16
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a;
cout << "a = ";
cin >> a;
boolean = (a > 9 && a < 100 && a % 2 == 0);
cout << boolean;
}
Telegram | Viktorina bot | YouTube
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a;
cout << "a = ";
cin >> a;
boolean = (a > 9 && a < 100 && a % 2 == 0);
cout << boolean;
}
Telegram | Viktorina bot | YouTube
👍1🔥1
#savol
#javob
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("n = ");
int n = scanner.nextInt();
int a = scanner.nextInt();
int min = a, max = a;
for (int i = 2; i <= n; i++) {
a = scanner.nextInt();
if (min > a) {
min = a;
}
if (max < a) {
max = a;
}
}
System.out.println("Max = " + max);
System.out.println("Min = " + min);
}
Telegram | Viktorina bot | YouTube
#javob
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("n = ");
int n = scanner.nextInt();
int a = scanner.nextInt();
int min = a, max = a;
for (int i = 2; i <= n; i++) {
a = scanner.nextInt();
if (min > a) {
min = a;
}
if (max < a) {
max = a;
}
}
System.out.println("Max = " + max);
System.out.println("Min = " + min);
}
Telegram | Viktorina bot | YouTube
👍2🔥2
#javob_cpp_boolean_17
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a;
cout << "a = ";
cin >> a;
boolean = (a > 99 && a < 1000 && a % 2 != 0);
cout << boolean;
}
Telegram | Viktorina bot | YouTube
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a;
cout << "a = ";
cin >> a;
boolean = (a > 99 && a < 1000 && a % 2 != 0);
cout << boolean;
}
Telegram | Viktorina bot | YouTube
👍2🥰1
#javob_cpp_boolean_18
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
boolean = (a == b) (a == c) (b == c);
cout << boolean;
}
Telegram | Viktorina bot | YouTube
#include <iostream>
using namespace std;
int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
boolean = (a == b) (a == c) (b == c);
cout << boolean;
}
Telegram | Viktorina bot | YouTube