Matrizes

Páginas: 3 (674 palabras) Publicado: 4 de marzo de 2013
Programación ||

Corrección

Nombre.-Christian ayo
Fecha.-3 de marzo del 2015
Trimestre.-1°
Semestre lectivo.-marzo –agosto 2013

1.-Resolver La función sumatoria dado
X=5*5+3/2N
Y=E x+2(i)/4+i! Hallar el valor de Y
I=1
A).-código#include<stdio.h>#include<conio.h>#include<iostream>using namespace std;int factorial(int);void ValorY(int);int main(int argc,char*argv[]){int n,ope; double y; char next; cout<<"\n MENU DE OPCIONES \n"<<endl; cout<<"\n 1.CALCULAR \n"<<endl; cout<<"\n 2. SALIR \n"<<endl; cout<<"\n ESCOJA UNA OPCION \n"<<endl; cin>>ope; fflush(stdin);do { switch(ope){ case 1:while((next!='N')||(next=='S')){ cout<<" 1.-CALCULAR "<<endl; cout<<" N "<<endl;cout<<"FUNCION ----: X + 2i"<<endl; cout<<" Y= |---: = --------"<<endl; cout<<" |___ 4 + i!"<<endl;cout<<" i=1 "<<endl; cout<<endl; cout<<" 5^2 + 3 "<<endl;cout<<"CUANDO X= ---------"<<endl; cout<<" 2 "<<endl; | cout<<"INGRESE EL VALOR DE N: "; cin>>n;for(int i=1;i<=n;i++){ ValorY(i); } cout<<"\tDesea continuar:(S/N)"<<endl; cin>>next; } break; case 2: cout<<"FIN"; break; default: cout<<"NO EXISTE OPCION"; break; }...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • matriz
  • Matriz
  • Matrizen
  • Matriz
  • Matriz
  • Matriz
  • matriz
  • matriz

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS