Computer Science, asked by abhishek409062, 11 months ago

create a program to check if a number input by users a positive or negative number​

Answers

Answered by kushwahaayush
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
Math, 11 months ago