По разделам

 

Решение задачи Integer 19


С начала суток прошло N секунд (N — целое). Найти количество
полных минут, прошедших с начала суток.

Код (C/C++)

#include <stdio.h>

int main(void)
{
    int N;
    printf("N:");
    scanf ("%i", &N);

    printf("%i\n",N/60);

    return 0;
}

Код (Python)

import random

N = random.randrange(0,86400)
print("Число секунд: ", N)
m = int(N/60)
print("Целые минуты: ", m)
									

Код (Pascal)

program Integer19;
var
  Ts, Tm: Integer;
begin
  Write('Введите кол-во секунд: ');
  Readln(Ts);
  Tm:=Ts div 60;
  Writeln('Кол-во целых минут: ',Tm);
end.
									




Integer. Абрамян
Integer 1 Просмотров: 11855
Integer 2 Просмотров: 7526
Integer 3 Просмотров: 7955
Integer 4 Просмотров: 36000
Integer 5 Просмотров: 8405
Integer 6 Просмотров: 6935
Integer 7 Просмотров: 6780
Integer 8 Просмотров: 5428
Integer 9 Просмотров: 4548
Integer 10 Просмотров: 6164
Integer 11 Просмотров: 6507
Integer 12 Просмотров: 6926
Integer 13 Просмотров: 6464
Integer 14 Просмотров: 3464
Integer 15 Просмотров: 4389
Integer 16 Просмотров: 3586
Integer 17 Просмотров: 3879
Integer 18 Просмотров: 3538
Integer 19 Просмотров: 5378
Integer 20 Просмотров: 4119
Integer 21 Просмотров: 4466
Integer 22 Просмотров: 3629
Integer 23 Просмотров: 4511
Integer 24 Просмотров: 8378
Integer 25 Просмотров: 3640
Integer 26 Просмотров: 3219
Integer 27 Просмотров: 2980
Integer 28 Просмотров: 3730
Integer 29 Просмотров: 5068
Integer 30 Просмотров: 4629

Комментарии

Чтобы написать комментарии вам нужно войти в систему или зарегистрироваться



Заявка на расчет