create a program to check if a number input by users a positive or negative number
Answers
Answered by
1
Explanation:
#include<stdio.h>
#include<conio.h>
void main(){
int x;
printf("enter a number");
scanf("%d",&x);
if(x>0){
printf ("positive");
}
else{
printf("negative");
}
getch ();
}
Similar questions