SHARE
TWEET

3

a guest May 25th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main(){
  3.       int n;
  4.       printf("Enter an integer: ");
  5.       scanf("%d", &n);
  6.       if(n>0){
  7.         printf("\nThe number is positive");
  8.       }
  9.       else if(n==0){
  10.         printf("\nThe number is Zero");
  11.       }
  12.       else{
  13.         printf("The number is negative");
  14.       }
  15.       return 0;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top