// program for float to integer conversion
#include<stdio.h>
#include<conio.h>
void main()
{
float n,r;
int t=0;
clrscr();
printf("Enter the number \n"); // program for float to integer conversion
scanf("%f",&n);
r=n;
t=n;
t=t%10;
printf("the expected number\t%d",t); // program for float to integer conversion
printf("\nthe floating point number\t%f",r);
getch();
} // program for float to integer conversion
#include<stdio.h>
#include<conio.h>
void main()
{
float n,r;
int t=0;
clrscr();
printf("Enter the number \n"); // program for float to integer conversion
scanf("%f",&n);
r=n;
t=n;
t=t%10;
printf("the expected number\t%d",t); // program for float to integer conversion
printf("\nthe floating point number\t%f",r);
getch();
} // program for float to integer conversion
No comments:
Post a Comment