refresh
This commit is contained in:
parent
0d6a072559
commit
acbc919f4f
@ -7,9 +7,12 @@ int read_number (double *num) {
|
||||
if (!fgets(buffer, sizeof(buffer), stdin)) { //если fgets не смог считать строку
|
||||
return 0;
|
||||
}
|
||||
if (sscanf)
|
||||
|
||||
if (sscanf(buffer, "%lf", num) ! = 1) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user