Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- {
- float a , b , c ,x;
- fflush(stdin);
- printf("Introduce el primer numero \n");
- scanf("%f",&a);
- fflush(stdin);
- printf("Introduce el segundo numero \n");
- scanf("%f",&b);
- fflush(stdin);
- printf("Introduce el tercer numero \n");
- scanf("%f",&c);
- x=(a+b+c)/3;
- printf("La media es %.3f \n" , x);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment