Vaqtni kiriting(sekund)


Download 6.22 Kb.
Sana18.06.2023
Hajmi6.22 Kb.
#1572698
Bog'liq
Vaqtni hisoblash


Console.WriteLine("Vaqtni kiriting(sekund):");
string a = Console.ReadLine();
int c = Convert.ToInt32(a);
int f = c / 86400;
int b = c - f * 86400;
int d = b /3600;
int e = b - d * 3600;
int t = e / 60;
int m = e - t * 60;
Console.WriteLine(f+" kun "+d+" soat "+t+" minut "+m+" sekund");


Console.ReadKey();
Download 6.22 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling