Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- float num,num2,med;
- printf("Entre com os dois valores : \n"); scanf("%f %f",&num,&num2);
- med = (3*num + 7*num2)/2;
- printf("Media ponderada = %f\n",med);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment