nikolas_serafini

Lista 1 - Exercício 37

May 22nd, 2013
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7.     int a,b,c;
  8.     float solution;
  9.  
  10.     printf("Entre com tres numeros inteiros :\n"); scanf("%d %d %d",&a,&b,&c);
  11.    
  12.     solution = (pow(a+b,2)+pow(b+c,2))/2;
  13.  
  14.     printf("Solucao = %f\n",solution);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment