#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
#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
#javob_java_boolean_22
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 > 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 > b && b > c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
❤1👍1🔥1👏1🤩1
html bo'yicha qo'llanma.pdf
1.4 MB
👍2❤1🔥1🥰1
#javob_java_boolean_23
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int a = n / 100;
int c = n % 10;
boolean bool = (a == c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int a = n / 100;
int c = n % 10;
boolean bool = (a == c);
System.out.println(bool);
}
Telegram | Viktorina bot | Portfolio
❤1🥰1👏1
HTML tilining teglari.pdf
82.4 KB
❤1👍1🥰1👏1
#javob_java_boolean_24
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("a = ");
float a = scanner.nextFloat();
System.out.print("b = ");
float b = scanner.nextFloat();
System.out.print("c = ");
float c = scanner.nextFloat();
float d = b * b - 4 * a * c;
System.out.println(d > 0 || d == 0);
}
Telegram | Viktorina bot | Portfolio
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("a = ");
float a = scanner.nextFloat();
System.out.print("b = ");
float b = scanner.nextFloat();
System.out.print("c = ");
float c = scanner.nextFloat();
float d = b * b - 4 * a * c;
System.out.println(d > 0 || d == 0);
}
Telegram | Viktorina bot | Portfolio
❤1👍1🔥1👏1