sirve para identificar si es positivo o negativo el numero;
#
include<iostream.h>
#
include<string.h>
#
include<conio.h>
#
include<stdlib.b>
Void main ()
{
Int r;
Cout<”ingress un numero:”>;
If(r <0)
{
Cout<<”el numero es
negativo”<<r<<endl;
}
Else
{
Cout<<”el
numero es positvio”<<r<<endl
}
Getch ()
}

No hay comentarios:
Publicar un comentario