codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <stdio.h> #include <stdlib.h> int main() { float numero_teclado [10]={0,1,2,3,4,5,6,7,8,9}; int i; //solicitanse os datos por teclado for (i=0; i<10; i++) { printf("Introduce un numero por teclado: "); scanf("%f", &numero_teclado[i]); } //amosanse os datos dende o final o principio for (i=9; i>=0; i--) { printf("\n%.2f", numero_teclado[i]); } return 0; }
Private
[
?
]
Run code
Submit