Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Escribir en C un programa que lea diez números de teclado, los almacene en un arreglo de enteros y los imprima en orden inverso.
- #include <stdio.h>
- #include <stdlib.h>
- void imprimir_inverso(void){
- int arreglo[10];
- for (int i=0;i<10;++i){
- fgets(char *char_n,10,stdin);
- int int_n = atoi(char_n);
- arreglo[i]= int_n;
- }
- for (int i=1;i<11;++i){
- printf("%d",arreglo[10-i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement