mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-24 09:10:16 +00:00
added more task
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#define x 106
|
||||
|
||||
int main()
|
||||
{
|
||||
int rub, kop, rest, n;
|
||||
|
||||
scanf("%d%d", &rub, &kop);
|
||||
|
||||
n = (rub * 100 + kop) / x;
|
||||
rest = (rub * 100 + kop) - n * x;
|
||||
|
||||
printf("%d %d\n", n, rest);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user