Guest User

Untitled

a guest
Jan 4th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define max 1000000
  4.  
  5.  
  6.  
  7.  
  8. int main()
  9. {
  10. int i,z,A[100],producto,pers,dinero;
  11.  
  12. printf("Ingrese precio del producto\n");
  13. scanf("%d",&producto);
  14. printf("En cuantas personas se dividira el producto\n");
  15. scanf("%d",&pers);
  16.  
  17. for(i=0;i<pers;i++)
  18. {
  19. printf("ingrese dinero de cada uno\n");
  20. scanf("%d",&dinero);
  21. A[i]=dinero;
  22. z=producto/pers;
  23.  
  24. }
  25.  
  26.  
  27. system("pause");
  28. }
Add Comment
Please, Sign In to add comment