added more task

This commit is contained in:
ada-dmitry
2023-11-15 10:34:29 +03:00
parent 2a3484ba88
commit 10b256c812
14 changed files with 126 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n1, n2;
float k;
scanf("%d%f", &n1, &k);
n2 = k * n1;
printf("%d\n", abs(n2 - n1));
return 0;
}