Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- int a,b,c;
- float solution;
- printf("Entre com tres numeros inteiros :\n"); scanf("%d %d %d",&a,&b,&c);
- solution = (pow(a+b,2)+pow(b+c,2))/2;
- printf("Solucao = %f\n",solution);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment