0
0

public class Moments {
public static void main(String[] args) {
int sekund = 33000001;
int yil = sekund/32140800;
int oy = (sekund%32140800)/2678400;
int kun = ((sekund%32140800)%2678400/86400);
int soat = (((sekund%32140800)%2678400%86400)/3600);
int minut = (((sekund%32140800)%2678400%86400)%3600)/60;
int sekundlar = (((sekund%32140800)%2678400%86400)%3600)%60;

System.out.println(sekund);
System.out.println("Yil = " + yil);
System.out.println("Oy = "+ oy);
System.out.println("Kun = " + kun);
System.out.println("soat = " + soat);
System.out.println("Minut = " + minut);
System.out.println("Sekundni tashkil etadi = " + sekundlar);

}
}


Шерзод Хакимов
4 years ago






Еще нет ответов