Advertisement
Glaas2

Res_p

Aug 15th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.   int a = 10;
  7.   char w = '@';
  8.   float z = 76.5702;
  9.   double R = a/w+z;
  10.   printf("El resultado es %d\n", R);
  11.   printf("\n\n");
  12.   system("PAUSE");
  13.  
  14.   int R1, R2, R3;
  15.   float V, I;
  16.   printf("Ingresa R1,R2,R3,V\n");
  17.   scanf("%d,%d,%d,%f", &R1,&R2,&R3,&V);
  18.   I=(V/((1.0/R1)+(1.0/R2)+(1.0/R3)));
  19.   printf("La corriente (I) es: %f\n ", I);
  20.   system("PAUSE"); 
  21.   return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement