float num;
char buffer[20];
printf("ENTER A POSITIVE NUMBER:");
gets(buffer);
num=atoi(buffer);
if(num<=0&&buffer[0]!='0');
{printf("Not a positive number.\n");
printf("Hit any key to exit...");
getch();
exit(0);
}printf("num==%f\n",num);
HOW DOES THIS CODE HANDLE ERRORS??
WHAT ERRORS ARE DETECTED????