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

Arreglos y Matrices Unidimensionales-imprimir

Embed Size (px)

DESCRIPTION

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

Citation preview

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