Input :-
Outputs : -
Code :-
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
printf("Enter a number : \n");
scanf("%d", &a);
if
(a<0)
printf("The number is negative\n");
else if
(a==0)
printf("You Entered Zero\n");
else
printf("The number is positive\n");
return 0;
}
Outputs : -
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
printf("Enter a number : \n");
scanf("%d", &a);
if
(a<0)
printf("The number is negative\n");
else if
(a==0)
printf("You Entered Zero\n");
else
printf("The number is positive\n");
return 0;
}
0 Comments:
Post a Comment