Answer the question
In order to leave comments, you need to log in
Why doesn't it display correctly?
Wrote this
<code lang="c">
#include <stdio.h>
#include <conio.h>
#include <locale.h>
int main(void) {
setlocale(LC_ALL, "RUS");
double a;
printf("Введите число с плавающей запятой: ");
scanf_s("%f", &a);
printf("Введено число %f или %e", a, a);
_getch();
return 0;
}
</code>
Answer the question
In order to leave comments, you need to log in
I have only one assumption, the book was written by a person who had a computer with a 32-bit processor, and you have a 64-bit one and you need to write like this:scanf_s("%Lf", &a);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question