#include <stdio.h>
#include <stdlib.h>
int main(void) {
int num;
printf("Enter a Number");`scanf`
scanf("%d",&num);
if(num<0){
printf("Number is negative");
}else{
printf("Number is Positive");
}
return EXIT_SUCCESS;
}
This was my code.
But when I run this the first printf "Enter a number " is not showing. Even without showing that, I entered a number. then I press the enter key. Then it is showing "Enter a NumberNumber is Positive" both the printf.
Anyone can help me?? please!!!!