Buscar

positivo

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

#include <iostream>
#include <math.h>
using namespace std;
main(){
	/*PAR IMPA NULLO NEGATIVO POSITIVO*/
	
	int nt;
	char nz;
	cin>>nt;
	nz==NULL;
	
	if (nt>=0){
		cout<<"POSITIVO ";	
	}
		if(nt<0){
			cout<<"NEGATIVO ";
		}
		
		
	if (nt %2==0){
	cout<<"PAR ";
 }
	else{
		cout<<"IMPAR ";
		}
		if(nt==nz){
		cout<<"NULO ";
		}
	
}

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Continue navegando