Monday, August 2, 2021

C++ Program to find input number is positive or negative.

C++ Program to find input number is positive or negative.

#include<iostream.h>

#include<conio.h>

void main()

{

int n;

 clrscr();

 cout<<"\nEnter any number ";

 cin>>n;

 if(n>0)

  {

   cout<<"\n Its Positive Number";

  }

  else

  {

   cout<<"\n Its Negative Number";

  }

 getch();

}

No comments:

Post a Comment

JAC Board Computer || IIT 2025 || Introductory Information Technology || Class 10 || Practical Examination 2025

Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...