#include <stdio.h> int main(void) { int i; long double ld; ld = 10.0; i = ld; /*convert double to int*/ printf("%d", i); }