There is a given C code:
Given two non-negative numbers a and b. Find their geometric mean, that is, the square root of their product:
#include <math.h> #include <stdio.h> main() { double a, b; double p, kkp; printf("Dannaya programma vychislyaet kvadratnyi koren' proizvedeniya dvuh " "chisel.\n"); printf("Vvedite 'a':"); scanf("%f.\n", &a); printf("Vvedite 'b':"); scanf("%f.\n", &b); p = a * b; kkp = sqrt(p); printf("Kvadratyi koren' proizvedeniya dvuh chisel = %.2f\n", kkp); return; } It compiles successfully, but when executed, it always returns a null value. I understand that for sure the error is trivial, but I cannot find it on my own.