ЧАСЫ

#include "stdafx.h" #include <stdio.h> #include <math.h> #include <locale.h> int main() { int h, m, t; printf("vvedite chasi minuti "); printf("/n "); scanf_s("%i%i", &h, &m); if (h * 5 >= m) { t = (60 * h - 11 * m) / 11; } else { t = (60 * h - 11 * m + 720) / 11; } if (t==65) t=0; printf("%i", t); scanf_s("%i", &t); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.