arreglos y matrices unidimensionales-imprimir

7
6 ARREGLOS Y MATRICES UNIDIMENSIONALES 1.- Diseñar un programa que permita ingresar 10 notas por teclado. Luego presente en pantalla el contenido del arreglo. CODIGO DEL PROGRAMA: #include<conio.h> #include<iostream.h> void main() { const int max=10; int notas[max]; for(int i=0;i<max;i++) {cout<<"Ingrese nota: "; cin>>notas[i];} cout<<"\nFin de datos"; cout<<"\n\nNotas ingresadoa"; for(int j=0;j<max;j++) { cout<<"\nNota["<<j+1<<"]"; cout<<notas[j]; } getch(); } INGENIERIA CIVIL PROGRAMACION DIGITAL

Upload: mack-celi-chavez-castillo

Post on 13-Sep-2015

6 views

Category:

Documents


2 download

DESCRIPTION

ARREGLOS Y MATRICES - EN C++PROGRAMACIÓN DIGITAL -CODIGOS - COMPILACION .ETC.

TRANSCRIPT

INGENIERIA CIVIL

6

ARREGLOS Y MATRICES UNIDIMENSIONALES1.- Disear un programa que permita ingresar 10 notas por teclado. Luego presente en pantalla el contenido del arreglo.CODIGO DEL PROGRAMA:#include#includevoid main(){ const int max=10; int notas[max]; for(int i=0;i