#include<stdio.h>
main()
{
int num;
printf("Enter any number: ");
scanf("%d",num);
if(num>0)
printf("\n The Number you entered is a +ve integer \n");
else if(num<0)
printf("\n The Number you entered is a -ve integer \n");
else
printf("\n You have entered zero on the console \n");
}
main()
{
int num;
printf("Enter any number: ");
scanf("%d",num);
if(num>0)
printf("\n The Number you entered is a +ve integer \n");
else if(num<0)
printf("\n The Number you entered is a -ve integer \n");
else
printf("\n You have entered zero on the console \n");
}
No comments:
Post a Comment