Write a program and check whether it is positive or negative number
Answers
Answered by
1
#include <stdio.h>
void main()
{
int num;
printf("Input a number :");
scanf("%d", &num);
if (num >= 0)
printf("%d is a positive number \n", num);
else
printf("%d is a negative number \n", num);
}
Input a number :15
Input a number :15 15 is a positive number
Answered by
0
Explanation:
it will start with CLS....PLEASE CORRECT IT DEAR..
Similar questions