Mega Code Archive

 
Categories / C Tutorial / Data Type
 

Displaying Floating-Point Data Types with printf

#include <stdio.h> main(){     float result;     result = 3.123456;     printf("The value of result is %f", result); } The value of result is 3.123456