Drowze

Listas Adicionais 01 Ex 04

May 18th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1.  /* 4.  Faça um programa para receber 3 valores inteiros dousuário e mostrar a sua média (que
  2. pode não ser inteira). .
  3.  */
  4.  
  5. #include <stdlib.h>
  6. #include <stdio.h>
  7.  
  8. void main(){
  9.     int x,y,z;
  10.  
  11.     printf("Digite 3 numeros\n");
  12.     scanf("%d %d %d",&x,&y,&z);
  13.     printf("Media: %f\n",(float)(x+y+z)/3);
  14.  
  15.     sytem("Pause");
  16. }
Advertisement
Add Comment
Please, Sign In to add comment