#javob_java_boolean_18
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = (a == b) (a == c) (b == c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = (a == b)
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
โค1๐1๐1
#javob
#gita_9
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int digitsCount = 0;
int digitsSumma = 0;
while (n != 0) {
digitsSumma += n % 10;
digitsCount++;
n /= 10;
}
System.out.print(digitsCount + " " + digitsSumma);
}
Telegram | Viktorina bot | Portfolio
#gita_9
Java dasturlash tilida
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int digitsCount = 0;
int digitsSumma = 0;
while (n != 0) {
digitsSumma += n % 10;
digitsCount++;
n /= 10;
}
System.out.print(digitsCount + " " + digitsSumma);
}
Telegram | Viktorina bot | Portfolio
โค1๐1๐ฅฐ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 ...
Botdagi Kotlin bobining Integer bo'limiga yangi savollarni va ularni javoblarini qo'shdik.
Viktorina bot
Telegram | Viktorina bot | Portfolio
Botdagi Kotlin bobining Integer bo'limiga yangi savollarni va ularni javoblarini qo'shdik.
Viktorina bot
Telegram | Viktorina bot | Portfolio
Telegram
ProgrammersQuiz
@Programmers_Dasturchi
๐3โค1๐1๐ฅ1
PROGRAMMERS pinned ยซ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โฆยป
#savol
for operatoridan foydalangan holda quyidagi ko'rinishni chiqaruvchi dastur tuzing?
Kiruvchi ma'lumot:
5
Chiquvchi ma'lumot:
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
Telegram | Viktorina bot | Portfolio
for operatoridan foydalangan holda quyidagi ko'rinishni chiqaruvchi dastur tuzing?
Kiruvchi ma'lumot:
5
Chiquvchi ma'lumot:
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
Telegram | Viktorina bot | Portfolio
Telegram
PROGRAMMERS
Guruh: @Cpp_java_dasturlash
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
โค1๐1๐ฅ1๐ฅฐ1
#savol
for operatoridan foydalangan holda quyidagi ko'rinishni chiqaruvchi dastur tuzing?
#javob
#java
Java dasturlash tilida yozilgan dastur kodi
public static void main(String[] args) {
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= 5; j++) {
System.out.print(i + " ");
}
System.out.println();
}
}
Kiruvchi ma'lumot:
5
Chiquvchi ma'lumot:
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
Telegram | Viktorina bot | Portfolio
for operatoridan foydalangan holda quyidagi ko'rinishni chiqaruvchi dastur tuzing?
#javob
#java
Java dasturlash tilida yozilgan dastur kodi
public static void main(String[] args) {
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= 5; j++) {
System.out.print(i + " ");
}
System.out.println();
}
}
Kiruvchi ma'lumot:
5
Chiquvchi ma'lumot:
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
Telegram | Viktorina bot | Portfolio
Telegram
PROGRAMMERS
Guruh: @Cpp_java_dasturlash
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
๐2๐ฅ1๐1๐คฉ1
#javob_java_boolean_19
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = (a == -b) (a == -c) (b == -c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = (a == -b) (a == -c) (b == -c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
โค1๐1๐1
delphi dasturlash tili kitob.pdf
622.2 KB
โค1๐1๐ฅฐ1๐คฉ1
#javob_java_boolean_20
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = (a != b && b != c && a != c) || (a != c && a != b && b != c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = (a != b && b != c && a != c) || (a != c && a != b && b != c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
โค1๐1๐1
Delphi tilida dasturlash .pdf
7.3 MB
๐2โค1๐ฅ1๐1๐คฉ1
Quick sort (Tezkor saralash)
void quicksort(int a[], int p, int r)
{
if(p < r)
{
int q;
q = partition(a, p, r);
quicksort(a, p, q);
quicksort(a, q+1, r);
}
}
int partition(int a[], int p, int r)
{
int i, j, pivot, temp;
pivot = a[p];
i = p;
j = r;
while(1)
{
while(a[i] < pivot && a[i] != pivot)
i++;
while(a[j] > pivot && a[j] != pivot)
j--;
if(i < j)
{
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
else
{
return j;
}
}
}
Telegram | Viktorina bot | Portfolio
void quicksort(int a[], int p, int r)
{
if(p < r)
{
int q;
q = partition(a, p, r);
quicksort(a, p, q);
quicksort(a, q+1, r);
}
}
int partition(int a[], int p, int r)
{
int i, j, pivot, temp;
pivot = a[p];
i = p;
j = r;
while(1)
{
while(a[i] < pivot && a[i] != pivot)
i++;
while(a[j] > pivot && a[j] != pivot)
j--;
if(i < j)
{
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
else
{
return j;
}
}
}
Telegram | Viktorina bot | Portfolio
Telegram
PROGRAMMERS
Guruh: @Cpp_java_dasturlash
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
โค1๐1๐ฅ1๐ฅฐ1
#javob_java_boolean_21
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = a < b && b < c;
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
boolean bool = a < b && b < c;
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
๐2๐ฅฐ1๐1๐คฉ1
#include<iostream>
using namespace std;
int main(){
int n,m, count=0; char ch;
do{
cout<<"\n\n\nPlease enter n: "; cin>>n;
cout<<"Please enter m: "; cin>>m;
if(n>m){
for(int i=m; i<=n; i++){
if(i%5==0){
cout<<"Dividend for five is: "<<i<<endl;
count++;
}else if((n-m)<5){
cerr<<"There is Not Dividend for five."<<endl;
}
}
cout<<"Between "<<m<<" and "<<n<<" have "<<count<<" Dividend(s)"<<endl;
}
else{
cerr<<"M is bigger than N. N should be bigger than M. "<<endl;
}
cout<<"Wanna try again (y/n): "; cin>>ch;
}
while(ch=='y' || ch=='Y');
return 0;
}
Telegram | Viktorina bot | Portfolio
using namespace std;
int main(){
int n,m, count=0; char ch;
do{
cout<<"\n\n\nPlease enter n: "; cin>>n;
cout<<"Please enter m: "; cin>>m;
if(n>m){
for(int i=m; i<=n; i++){
if(i%5==0){
cout<<"Dividend for five is: "<<i<<endl;
count++;
}else if((n-m)<5){
cerr<<"There is Not Dividend for five."<<endl;
}
}
cout<<"Between "<<m<<" and "<<n<<" have "<<count<<" Dividend(s)"<<endl;
}
else{
cerr<<"M is bigger than N. N should be bigger than M. "<<endl;
}
cout<<"Wanna try again (y/n): "; cin>>ch;
}
while(ch=='y' || ch=='Y');
return 0;
}
Telegram | Viktorina bot | Portfolio
Telegram
PROGRAMMERS
Guruh: @Cpp_java_dasturlash
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
Android: @prog_mz_android
Quiz bot: @programmersQuiz_bot
Portfolio: @ProgrammersPortfolio
Reklama: https://t.iss.one/programmers_reklama/2
Kanal uchun taklif:
@Mr_Max_Telegram
@ZohidAbdullayev
๐3โค1๐ฅ1๐ฅฐ1