FOR_Hanssel y Emiliano

Guia de programas con estructura repetitiva (FOR)

Please download to get full document.

View again

of 7
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.


Publish on:

Views: 5 | Pages: 7

Extension: DOCX | Download: 0

  #include<stdio.h> #include<conio.h> #include<iostream> using namespace std; int main() { int x; for(x=1; x<=15; x++) { printf( Mi numero es %d\n ,x); } getch(); } #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<iostream> using namespace std; int main() {   int x; for(x=5;x<=100;x+=5) { printf( Mi numero es %d\n ,x); } getch(); }  #include <stdio.h> #include <conio.h> #include <iostream> using namespace std; int main () { int x, i; cout<< Hasta que numero deseas llegar ; cin>>x; for (i=1; i<=x; i++) { cout<< Mi numero es: <<i<< \n ; } getch (); } #include<stdlib.h> #include<stdio.h> #include<conio.h> int main () { int isuma=0,i; for(i=1; i<=5; i++) {   isuma+=i; } printf( La suma de los 5 primeros numeros es: %d\n ,isuma); system( pause ); } #include<stdlib.h> #include<stdio.h> #include<conio.h> int main() { int tot, comp, mam; float prom=0.0; for(mam=1;mam<=10;mam++) { printf( Ama de casa %d\n ,mam); printf( Compra total de $ ); scanf( %d ,&comp); printf( \n ); tot+=comp; } mam=mam-1; prom=tot/mam; printf( \nEl promedio de las 10 amas de casa es: %f ,prom); getch(); }
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks