18 lines
261 B
C
18 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;
|
||
|
}
|