• Asignatura: Informática
  • Autor: maricese8stej
  • hace 8 años

Porfavor!! ejemplos demath.mod; math.sqrt; if; anidadaen lenguaje informatico;;;

Respuestas

Respuesta dada por: DanielBy1
0
Que lenguaje es?

Ejemplo de libreria Math.h

int y, x = 9;
y=sqrt(x);

If anidado:

if(x == 0){
printf("Hola mundo");
}
else if (x < 0){
printf("HolaMundo2");
}
else if(x>0){ printf("Hola mundo 3");
}

Forma 2:

if(x == 0){
printf("Hola mundo");
}
if (x < 0){
printf("HolaMundo2");
}
if(x>0){ printf("Hola mundo 3");
}

Preguntas similares