1.03K subscribers
1.77K photos
420 videos
676 files
3.85K links
Download Telegram
#javob_cpp_boolean_6

#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 && b <= c);
cout << boolean;
}

Telegram | Viktorina bot | YouTube
👍3🔥1
#savol

#javob
Java dasturlash tilida

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] a = new int[n];
for (int i = 0; i < a.length; i++) {
a[i] = scanner.nextInt();
}
int s = 0;
int m = scanner.nextInt();
for (int j : a) {
if (j < m) {
s += j * j;
}
}
System.out.println(s);
}

Telegram | Viktorina bot
🔥2👍1👏1
Assalomu aleykum Xurmatli dasturchilar. PROGRAMMERS kanalimizda savol - javob viktorinasini olib borayapmiz. Viktorinamizda berilayotgan savollar va javobllar yuqorida qolib ketganligini hisobga olgan holatda, viktorinamizdagi savol javoblarni @programmersQuiz_bot botiga joylab borayapmiz. Botga a'zo bo'ling. Hali savollar oldida ...

Botning Kotlin bo'limiga yangi savollarni va ularning javoblarini qo'shdik

Viktorina bot

Telegram | Viktorina bot | YouTube
2🤩1
👍1🤩1
Android Studioda standart ranglar nomlanishi #Android_Studio

Telegram | Viktorina bot
👍41👏1
#lifecycle of fragment and activity

Telegram | Viktorina bot
👍3🔥1🥰1
#javob_cpp_boolean_7

#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 && b < c);
cout << boolean;
}

Telegram | Viktorina bot | YouTube
🔥2🤩1
👍1🤩1
#savol Dastlabki n ta fibonachi sonni topish dasturi

#javob
Java dasturlash tilida

public class fibonachiSon {
private static int n1 = 1;
private static int n2 = 2;

private static void printFibonacci(int count) {
if (count > 0) {
int n3 = n1 + n2;
n1 = n2;
n2 = n3;
System.out.print(" " + n3);
printFibonacci(count - 1);
}
}

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("n = ");
int count = scanner.nextInt();
System.out.println("Dastlabki " + count + " ta fibonachi son");
System.out.print(n1 + " " + n2);
printFibonacci(count - 2);
}
}

Telegram | Viktorina bot | YouTube
👍1🥰1
👍1🔥1
#javob_cpp_boolean_8

#include <iostream>

using namespace std;

int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
boolean = ((a % 2 != 0) && (b % 2 != 0));
cout << boolean;
}

Telegram | Viktorina bot | YouTube
👍3🔥2👏1
👍2🤩1
android-studio-2020.3.1.25-windows.exe
914.7 MB
Android studio

Telegram | Viktorina bot | Youtube
👍5👏2🤩21
#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 = new int[n];
for (int i = 0; i < n; i++) {
a[i] = scanner.nextInt();
}
int min = a[0];
for (int i = 0; i < n; i += 2) {
if (min > a[i]) {
min = a[i];
}
}
System.out.println(min);
}

Telegram | Viktorina bot | YouTube
👍41🔥1
#javob_cpp_boolean_9

#include <iostream>

using namespace std;

int main(){
bool boolean;
int a, b, c;
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
boolean = (a % 2 != 0 || b % 2 != 0);
cout << boolean;
}

Telegram | Viktorina bot | YouTube
2🔥1
👏2👍1