Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std ;
- int main () {
- int arreglo[5] ;
- int i ; //ciclo
- int numero ;
- int j ; //ciclo2
- for (i=0; i <=4; i++) { //ciclo para la cantidad de numeros con el arreglo
- cout << " Ingrese numero entero " ;
- cin >> arreglo[i] ;
- }
- //hasta acรก todo bien, ahora empieza la segunda parte
- cout << " Ingrese numero " ;
- cin >> numero ;
- for (j=0; j <=4 ; j++) {
- if (arreglo[i] > numero) {
- cout << " El numero " << arreglo[i] << " es mayor a " << numero << endl ;
- }
- else {
- }
- }
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement