//Return integer value for float value #include <stdio.h> int convert(float n) { int r; r = n; return r; } void main () { float number; printf("Enter the real number to be converted\n"); scanf("%f", &number); printf("\nResult:\n%d\n", convert(number)); }
Enter the password to open this PDF file:
-
-
-
-
-
-
-
-
-
-
-
-