Home » , » Basic C Programming Practice - Practice 35

Basic C Programming Practice - Practice 35

Written By Unknown on Friday, October 11, 2013 | 12:21 AM

=> Write a program in C to read int value and print float equivalent?


Solution :

#include<stdio.h>
#include<conio.h> 

main()


{

      int one;


      float two;

      scanf("%d", &one);

      two=(float)one;

      printf("%f",two);


      getch();

} 



Program Analysis :

Share this article :

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Learn Programming - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger| Distributed by Rocking Templates