Code Snippets C

#include
int main(void)
{
int k, j;
printf("Enter a decimal number: ");
scanf("%d.%d", &k, &j);
printf("left part: %d, right part: %d", k, j);
return 0;
}