#include <iostream>
      using namespace std;
      int main()
      {
          int num = 96;
          //Conditions to check if the number is negative or positive
          if (num > 0)
               cout << "The number is positive";
          else if (num < 0)
              cout << "The number is negative";
          else
              cout << "Zero";
          return 0;
      }
      
      Cpp language logo

      Check if a Number

      0

      0

      avatar
      Ayush Gupta

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.