Computer Science, asked by sadeepan38, 1 month ago

Illustrate the program of nested if else statement find whether and inputted number is zero a positive number or a negative number.



plz answer it fast

Answers

Answered by anonymous0108
1

#include<stdio.h>

int main()

{

int a;

printf("Enter a value: ");

scanf("%d",&a);

if (a>0)

printf("positive number ");

else if(a==0)

printf("a is equal to 0");

else

printf("negative number");

return 0;

}

Similar questions