1.02K subscribers
1.77K photos
420 videos
676 files
3.85K links
Download Telegram
Xurmat bilan PROGRAMMERS kanali 😊

Telegram | Viktorina bot | Portfolio
👍3🎉2🥰1👏1
O'zbekistonlik 2

Filmda Germaniyada istiqomat qiladigan Elon Muskga tegishli "Tesla" va "SpaceX" kompaniyalarda ishlovchi yurtdoshlarimiz haqidagi hikoyalar namoyish etilgan

Telegram | Viktorina bot | Portfolio
👍4👏1😁1🐳1🏆1
👍1🔥1👏1
1👍1🥰1
#savol_66
for operatoridan foydalangan holda quyidagi ko'rinishni chiqaruvchi dastur tuzing?

Dasturlash tillari: o'zingizga qulay dasturlash tilida

Chiquvchi ma'lumot 👇👇👇


1
2 3
4 5 6
7 8 9 10
11 12 13 14 15

Telegram | Viktorina bot | Portfolio
1👍1🤩1💯1
#javob_kotlin_boolean_23

fun main() {
print("n = ")
val n = readLine()!!.toInt()
val a = n / 100
val b = (n / 10) % 10
val c = n % 10
println(a == c)
}

Telegram | Viktorina bot | Portfolio
1❤‍🔥1👍1
#javob_kotlin_boolean_24

fun main() {
print("a = ")
val a = readLine()!!.toInt()
print("b = ")
val b = readLine()!!.toInt()
print("c = ")
val c = readLine()!!.toInt()
val d = b * b - 4 * a * c
println(d > 0)
}

Telegram | Viktorina bot | Portfolio
👍21
1👍1🥰1🐳1
👍21👌1💯1
Selection sort
void selectionSort(int a[], int size)
{
int i, j, min, temp;
for(i=0; i < size-1; i++ )
{
min = i; //setting min as i
for(j=i+1; j < size; j++)
{
if(a[j] < a[min]) //if element at j is less than element at min position
{
min = j; //then set min as j
}
}
temp = a[i];
a[i] = a[min];
a[min] = temp;
}
}

Telegram | Viktorina bot | Portfolio
11👍1
#javob_kotlin_boolean_25

fun main() {
print("x = ")
val x = readLine()!!.toInt()
print("y = ")
val y = readLine()!!.toInt()
println(x < 0 && y > 0)
}

Telegram | Viktorina bot | Portfolio
👍1🐳1🏆1
#javob_kotlin_boolean_26

fun main() {
print("x = ")
val x = readLine()!!.toInt()
print("y = ")
val y = readLine()!!.toInt()
println(x > 0 && y < 0)
}

Telegram | Viktorina bot | Portfolio
👍1😍1🐳1💯1
👍1🔥1💯1
1👍1🥰1
Insertion Sorting
int a[6] = {5, 1, 6, 2, 4, 3};
int i, j, key;
for(i=1; i<6; i++)
{
key = a[i];
j = i-1;
while(j>=0 && key < a[j])
{
a[j+1] = a[j];
j--;
}
a[j+1] = key;
}

Telegram | Viktorina bot | Portfolio
👍21🤩1💯1
#javob_kotlin_boolean_27

fun main() {
print("x = ")
val x = readLine()!!.toInt()
print("y = ")
val y = readLine()!!.toInt()
println((x < 0 && y > 0) or (x < 0 && y < 0))
}

Telegram | Viktorina bot | Portfolio
👍1👏1🤩1
#javob_kotlin_boolean_28

fun main() {
print("x = ")
val x = readLine()!!.toInt()
print("y = ")
val y = readLine()!!.toInt()
println((x > 0 && y > 0) or (x < 0 && y < 0))
}

Telegram | Viktorina bot | Portfolio
👍3🐳2❤‍🔥1🔥1
👍1😍1🏆1
1🔥1👌1
Bubble Sorting
int a[6] = {5, 1, 6, 2, 4, 3};
int i, j, temp;
for(i=0; i<6, i++)
{
for(j=0; j<6-i-1; j++)
{
if( a[j] > a[j+1])
{
temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
}
}
}

Telegram | Viktorina bot | Portfolio
👍1🥰1👌1💯1