Practica

Description
sasasaas

Please download to get full document.

View again

of 3
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.
Information
Category:

Documents

Publish on:

Views: 3 | Pages: 3

Extension: DOCX | Download: 0

Share
Transcript
  #include<iostream> using namespace std; main() { int cont=10,i=0; float prom, suma=0; while(cont<=90) { if(cont%5==0) { cout<<cont<< ; suma=suma+cont; i++; } cont++; } cout<< promedio: <<suma/i; }  #include<iostream> using namespace std; main() { int op; float puntaje; cout<< escoja su facultad\n ; cout<< 1 Medicina\n ; cout<< 2 Sistemas\n ; cout<< 3 Electronica\n ; cout<< 4 Mecatronica\n ; cout<< ingrese puntaje\n ; cin>>puntaje; cout<< ingrese facultad\n ; cin>>op; switch(op) { case 1: if (puntaje>=150) cout<< ingresaste a Medicina\n ; else cout<< te falto <<150-puntaje<< puntos\n ;break; case 2: if (puntaje>=110) cout<< ingresaste a Sistemas\n ; else cout<< te falto <<110-puntaje<< puntos\n ;break; case 3: if (puntaje>=90) cout<< ingresaste a electrónica\n ; else cout<< te falto <<90-puntaje<< puntos\n ;break; case 4: if (puntaje>=70) cout<< ingresaste a Mecatrónica\n ; else cout<< te falto <<70-puntaje<< puntos\n ;break; default:cout<< opción incorrecta ; } }   #include<iostream> using namespace std; main() { int cont=0, i=0; float suma; while(cont<=500){ if(cont%7==0 && cont!=35 && cont!=105 && cont!=210 && cont!=490 ){ cout<<cont<< ; suma= suma+cont; i++; } cont++; } cout<< \n la suma total es: <<suma<<endl; }
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