Star Patterns
C Program to Print an Float (Entered by the User)
C Program to Print an Float (Entered by the User)
#include <stdio.h> int main() { float x; printf("\n Enter x value:"); scanf("%f",&x); printf("\n Display x value: %f",x); return 0; }
Output:
Enter x value:25.789 Display x value: 25.789000