Searching...
Wednesday, 8 August 2018

Value is Positive or Negative check in C++ Program



check positive or negative or in C++ 
Determine Value is Positive or Negative  in C++ Programming with using of turbo c++ editor its very basic program but its more important part of your c++ programming language its very simple code how to determine number is positive or negative with the help of c++ program in editor of turbo here is source of this simple program value is positive or negative 
check positive or negative or in C++

so if you have any problem about this program now you check also this program image that is write a code in turbo c++ language to determine value is positive or negative you can check picture about this simple program


#include<conio.h>
#include<stdio.h>
#include<ctype.h>
void main()
{

int n;
clrscr();
gotoxy(15,5);

printf("Enter Any Number to Determine positive or negative");
scanf("%d",&n)

if(n>=0)
{
printf("Value is Positive");

}
else
{
printf("value is Nagetive");
}
getch();
}

0 komentar:

Post a Comment