Just started programming with Turbo C++. Why does this simple program not display the additional cprintf functions after I input a value?
#include <stdio.h>
#include <conio.h>
main()
{
float Speed;
Speed =0;
clrscr();
textcolor(YELLOW);
cprintf("Speed: ");
cscanf("%f",&Speed);
if(Speed>60){
textcolor(RED+BLINK);
cprintf("Overspeeding");
}
else{
textcolor(GREEN+BLINK);
cprintf("Normal Speed");
}
getch();
return 0;
}
Since I just started programming, I really don't know if my code is easily readable to others. Please advise me on some basic coding practices.