select * from royxat where firstName like 'A%' and class = '4-kurs'
2. select code as "kod", model as "turi", speed as "tezlik", ram as "operativka",
hd as "hd", price as "narx", screen as "oyna" from laptop
3.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner son = new Scanner(System.in);
System.out.println("O'lchamini kiriting : ");
int n = son.nextInt();
int [][] array = new int[n][n];
for (int i=0; ifor (int j=0; jarray[i][j] = (int) (Math.random()*100+1);
System.out.print(array[i][j]+" ");
}
System.out.println();
}
for (int i=0; ifor (int j=0; jif(j>=i){
array[i][j] = array[i][j] *2;
}
}
}
for (int i=0; ifor (int j=0; jSystem.out.print(array[i][j]+" ");
}
System.out.println();
}
}
}
4.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner son = new Scanner(System.in);
System.out.println("So'zni kiriting : ");
String soz = son.nextLine();
soz = soz.trim();
int c=1;
for (int i=0; iif(soz.charAt(i)== ' '){
c++;
if(soz.charAt(i+1) == ' '){
c--;
}
}
}
System.out.println("Berilgan gapda "+ c+ " ta so'z bor");
}
}
5.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner son = new Scanner(System.in);
System.out.print("Sonni kiriting : ");
int n = son.nextInt();
int c=0;
for (int i=2; ifor (int j=1; j<=i; j++){
if(i%j==0){
c++;
}
}
if(c==2){
System.out.print(i+"\t");
}
c=0;
}
}
}