C/After Decimal.c
2024-05-13 11:09:46 -05:00

17 lines
261 B
C

#include <stdio.h>
#include <stdlib.h>
int main () {
float n, d; /* Full Number, Decimal */
int i; /* Integer */
printf("Enter decimal number: ");
scanf("%f", &n);
i = (int)n;
d = n - i;
printf("The number after the decimal is %f", d);
return 0;
}