Académique Documents
Professionnel Documents
Culture Documents
=================================================================================
Universidad Industrial de Santander LEONEL PARRA PINILLA Escuela sistemas UIS
ESTUDIANTE________________________ Ejercicios para escribir en visual studio c++
ESCRIBIR PROGRAMA INTERACTIVO CALCULADORA FX-UIS USANDO MENU DE OPCIONES
=================================================================================
*/
#include <iostream>
using namespace std;
int op,fx;
void fijo()
{
std::cout << "\n SOLUCION USANDO FUNCIONES";
cout << "\n =======================";
cout << "\n titulo permanente";
cout << "\n =======================\n";
}
void limpiar()
{
system("cls");
}
/*
=================================================================================
Universidad Industrial de Santander LEONEL PARRA PINILLA Escuela sistemas UIS
función TIPO void opciones() para mostrar las funciones de la calculadora FX_UIS
=================================================================================
void opciones()
{
//Verde
/*
=================================================================================
Universidad Industrial de Santander LEONEL PARRA PINILLA Escuela sistemas UIS
/*
=================================================================================
Universidad Industrial de Santander LEONEL PARRA PINILLA Escuela sistemas UIS
void producto()
{
float x, y, z;
cout << "\n PRODUCTO DE DOS NUMEROS ";
cout << "\n =======================\n";
cout << " Digite numero x = a ";
cin >> x;
cout << " Digite numero y = a ";
cin >> y;
z = x * y;
cout << "\n\n producto = a " << z<<endl;
system("pause");
system("cls");
}
/*
=================================================================================
Universidad Industrial de Santander LEONEL PARRA PINILLA Escuela sistemas UIS
void factorial()
{
int i,x;
cout << "\n FACTORIAL DE UN NUMERO ";
cout << "\n =======================\n";
cout << " Digite numero x = a ";
cin >> x;
fx = 1;
for (i = 1; i <= x; i = i + 1) // factorial fd del denominador
{
fx = fx * i;
}
cout << "\n\n factorial de " << x << " = "<<fx;
system("pause");
system("cls");
}
/*
=================================================================================
Universidad Industrial de Santander LEONEL PARRA PINILLA Escuela sistemas UIS
void perfecto()
{
std::cout << " HALLAR SI UN NUMERO ES PERFECTO \n";
*/
=================================================================================
Universidad Industrial de Santander LEONEL PARRA PINILLA Escuela sistemas UIS
int main()
{
fijo();
do
{
opciones();
switch (op)
{
case 1: { suma(); fijo(); break; }
/*
=================================================================================
Universidad Industrial de Santander UIS Escuela SISTEMAS UIS
PROFESOR LEONEL PARRA PINILLA ESTUDIANTE _______________________________
=================================================================================
*/