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 numero ;
- int j ; // ciclo2
- for (int i=0; i <=4; i++) {
- cout << " Ingrese numero entero " ;
- cin >> arreglo[i] ;
- }
- cout << " Ingrese numero " ;
- cin >> numero ;
- for ( j=0; j <=4 ; j++) {
- if (arreglo[i] > numero) {
- cout << " el numero " << arreglo[j] << " es mayor a " << numero << endl ;
- }
- else {
- }
- }
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement