is there way you can convert a char into a float.I have some code but it's not working.
Code:#include <stdio.h> #include <ctype.h> #include <stdlib.h> int main() { char ch; int flag; printf("Type text, terminate with EOF\n"); flag = scanf("%c", &ch); while (ch != '\n') { printf("%c", ch); flag = scanf("%c", &ch); float aaa=(atof("ch")); printf("%1.0f",aaa); } }