try to run a program that if a number is bigger than 0, it state it is positive if not state negative
my program has a problem onpartCode:else
how can i fix it
thanks in advance
Code:#include <stdio.h> int main () { int x; printf("enter a value for x"); scanf("%d", &x); if (x>0) { printf("%d the number is positive", x); else printf("%d the number is negative", x); } }