ANNA UNIVERSITY COMPUTER SCIENCE AND ENGINEERING MATERIALS DOWNLOAD
Pages
HOME
ANNA UNIV RESULTS
QUESTIONS DOWNLOAD
SYLLABUS
MATERIALS DOWNLOAD
IMPORTANT LINKS
Showing posts with label
INTEGER TO FLOAT CONVERSION
.
Show all posts
Showing posts with label
INTEGER TO FLOAT CONVERSION
.
Show all posts
Wednesday, January 7, 2015
INTEGER TO FLOAT CONVERSION
#include<stdio.h>
main()
{
float b; int a;
printf("\nEnter an Integer\n"); scanf("%d",&a);
b=(float)a;
printf("\nThe Converted float value is %f",b);
}
OUTPUT:
Enter an Integer 45
The Converted float value is 45.00000
Older Posts
Home
Subscribe to:
Posts (Atom)