Write a Program to check whether the number is positive or not in C Programming

Hello, What’s Going on?

You guys know that i am regularly uploading the Programs related to c Program to help you all in C.

So, if you wanna learn more about C Click here

Okay, have a look on the code

//write a program to check whether the number is positive.
#include<stdio.h>
void main(){
int number;
 printf("Enter Any Number: ");
scanf("%d",&number);
if(number>0){
    printf("The Number is Positive");
}else{
 printf("The Number is Negative");
}
}
//CoderPradip

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.