The code contains a typo. In this statement
scand("%f",&Centimeters);
there shall be scanf
instead of scand
.
scanf("%f",&Centimeters);
More Related Contents:
- How do you type something on the same line of text in C [closed]
- isnt everything where it should be, why the segmentation fault?
- Program gives unstable output? [closed]
- Disadvantages of scanf
- C: Multiple scanf’s, when I enter in a value for one scanf it skips the second scanf [duplicate]
- When should I use ampersand with scanf()
- Using “\n” in scanf() in C [duplicate]
- Reading a line using scanf() not good?
- How to read string from keyboard using C?
- Does scanf() take ‘\n’ as input leftover from previous scanf()?
- read comma-separated input with `scanf()`
- difference between %ms and %s scanf
- Reading a single character in C
- Scanf won’t execute for second time
- Why doesn’t scanf need an ampersand for strings and also works fine in printf (in C)?
- scanf ignoring, infinite loop
- scanf() variable length specifier
- How can I scan strings with spaces in them using scanf()? [duplicate]
- Max string length using scanf -> ANSI C
- scanf not working as expected
- Get scanf to quit when it reads a newline?
- Program doesn’t execute gets() after scanf(), even using fflush(stdin)
- scanf(“%c”) call seems to be skipped
- Why is adding a leading space in a scanf format string recommended?
- If statements not working?
- Using scanf and fgets in the same program?
- SegFault after scanf?
- C programming – Loop until user inputs number scanf
- How do you read scanf until EOF in C?
- Difference between scanf() and fgets()