Google News
logo
C-Language - Interview Questions
Write a simple code fragment that will check if a number is positive or negative.
If (num>=0)
printf("number is positive");

else
printf ("number is negative");
Advertisement