Miyerkules, Enero 23, 2013

C++ DETERMINE POSITIVE NEGATIVE NUMBER

#include<iostream.h>
#include<conio.h>
void main(){
clrscr();
int a;
cout<<"enter #:";
cin>>a;
if(a<0)
{
cout<<"negative";
}
else
{
cout<<"positive";
}
getch();
}

0 (mga) komento:

Mag-post ng isang Komento

OWN BY HERBERT CARINOTE. Pinapagana ng Blogger.