Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 4. Faça um programa para receber 3 valores inteiros dousuário e mostrar a sua média (que
- pode não ser inteira). .
- */
- #include <stdlib.h>
- #include <stdio.h>
- void main(){
- int x,y,z;
- printf("Digite 3 numeros\n");
- scanf("%d %d %d",&x,&y,&z);
- printf("Media: %f\n",(float)(x+y+z)/3);
- sytem("Pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment