Somos Todos

Páginas: 2 (324 palabras) Publicado: 11 de febrero de 2013
#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <string.h>
#include <iostream>

void leyohm();
void potencia1();
void resistencia();
voidvoltaje();
void resistenciaserie();
void resistenciaparalelo();

main() {

int opc; char n;
do{
system("cls");
printf("1:potencia\n");printf("2:corriente\n");
printf("3:Resistencia\n");
printf("4:voltaje\n");
printf("5:Resistencia en Serie\n");
printf("6:Resitencia en paralelo\n");scanf("%d",&opc);

if (opc==1){
leyohm();
}
if (opc==2){
potencia1();
}if (opc==3){
resistencia();
}
if (opc==4){
voltaje();
}
if (opc==5){resistenciaserie();

}
if (opc==6){
resistenciaparalelo();
}

}while(opc!=n);
}

void leyohm(){float I,P,R;
system("cls");
printf("Dame I=");
scanf("%f", & I);
printf("Dame R=");
scanf("%f",& R);P=(I*I)*R;
printf("Potencia=%f",P);

getch();
}

void potencia1(){
float P,R,I;
system("cls");printf("Dame P=");
scanf("%f", & P);
printf("Dame R=");
scanf("%f",& R);
I= pow (P,1/2)*R;printf("Intencidad=%f",I);

getch ();
}

void resistencia(){
float P,R,I;
system("cls");
printf("Dame P=");...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Todos somos uno!
  • Todos somos
  • todos somos uno
  • todos somos uno
  • TODOS SOMOS
  • SOMOS TODOS
  • Somos todos
  • TODOS SOMOS UNO

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS