Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- float num, chute, ma1, mh1, ma2, mh2;
- chute = 1;
- printf("Entre com numero inteiro positivo\n");
- scanf("%f",&num);
- ma1 = (chute + num)/2;
- mh1 = (chute * num)/ma1;
- ma2 = (ma1 + mh1)/2;
- mh2 = (ma1 * mh1)/ma2;
- printf("%f", mh2);
- }
Advertisement
Add Comment
Please, Sign In to add comment