programming9
  • Flowcharts
  • Programs
      • Back
      • C Programs
      • C++ Programs
      • Java Programs
      • Python Codes
      • HTML Codes
      • Java Script Codes
      • SQL Codes
  • Tutorials
      • Back
      • Java Tutorials
      • Competitive Programming
      • Python Tutorials
      • C Programming
  • Blog
  • Login

C Program to Find Given Integer is Positive or Negative

Written by: RajaSekhar
  • basic c programs
/* www.programming9.com */
#include<stdio.h>
main()
{
    int num;
    printf("Enter a Number to test ZERO or +ve or -ve :");
    scanf("%d",&num);
    if(num==0)
        printf("Entered Number is ZERO");
    else
        if(num>0)
            printf("%d is a Positive Number",num);
        else
            printf("%d is a Negative Numbr",num);
}

 OUTPUT:

Enter a Number to test ZERO or +ve or -ve :10
10 is a Positive Number
Previous article: C Program for Sum of Squares of Numbers from 1 to n Prev Next article: C Program to Implement BINARY SEARCH Next
  • C Program to Find Nth Fibonacci Number Using Recursion
  • C Program to Swap Two Numbers without using Third Variable
  • C Program to Print a Message using Functions
  • C Program to Implement SHELL SORT
  • C Program to Find Smallest Element in the Array
  • GCD of Two Numbers Without using LCM in C
  • C Program to Print Pascal Traingle
  • C Program to Compare Two Strings using strcmp()
  • C Program to Check Whether a Number is PALINDROME or Not
  • C Program to Find Factorial of a Number using While Loop
  • C Program to Find Given Number is Perfect or Not
  • C program to find Sum of Digits of a Positive Integer Number
  • C program to Convert Number to Words
  • C Program to Implement SJF CPU Scheduling Algorithm
  • C Program to Convert Temperature from Degree Centigrade to Fahrenheit
  • Privacy Policy
  • Cookie Policy
© programming9.com 2025
Back to top