Sie sind auf Seite 1von 6

Prof.

Carlos Ucaay Chancafe

#include <iostream.h> --->SIEMPRE #include <conio.h> -----> SIEMPRE void main()---> SIGNIFICA PROCESO PRINCIPAL { -------> INICIO cout<< ---------> SALIDA DE DATOS- IMP PANTALLA cin>> ------------> LEER DATOS } -------> FIN

LOS // SIRVEN PARA HACER COMENTARIOS DENTRO DEL CODIGO CON LA FINALIDAD DE ORIENTAR QUE ESTA REALIZANDO DICHO COMANDO. EL ; SE UTILIZAN PARA FINALIZAR CADA LINEA DE CODIGO PARA EJECUTAR EL PROGRAMA SE UTILIZA LAS COMBINACIONES DE TECLAS CTRL + F9

#include <iostream.h> #include <conio.h> void main() { INICIO clrscr(); //Limpia la pantalla cout<<"Este es mi primer programa"; //Leyenda de salida FIN }

+ * / ^ % < > =

=== === === === === === === === ===

SUMA RESTA MULTIPLICACION DIVISION POTENCIA PORCENTAJE MENOR MAYOR IGUALDAD

Se ingresan desde el teclado dos nmeros enteros, informar la sumatoria de loz mismos.
#include <iostream.h> #include <conio.h> void main(){ int a,b,suma=0,prod=0; clrscr(); cout<<"Ingrese un nmero entero: "; cin>>a; cout<<"Ingrese otro nmero entero: "; cin>>b; suma=a+b; //Se suman los dos enteros ingresados cout<<"La suma es: "<<suma<<endl; getch(); }

Das könnte Ihnen auch gefallen