Code Snippets C

#include
int main(void)
{
int j1, j2;
printf("Enter first number: ");
scanf("%d", &j1);
printf("Enter second number (Non 0): ");
scanf("%d", &j2);
if(j2 == 0)
printf("Cannot divide by 0.");
else
printf("Answer is: %d.", j1 / j2);
return 0;
}