Advertisement
Kocyk

25.10.2018

Oct 25th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7. int x1,x2,x3,y,q;
  8. scanf("%d%d%d", x1,x2,x3);
  9. if(x3/x2==x2/x1) q=x3/x2;
  10. y=x3*q
  11. while()
  12. {
  13.  
  14. }
  15.  
  16. }
  17. /*int main() {
  18. int x,srp,srn;
  19. int sp=0;
  20. int sn=0;
  21. int lp=0;
  22. int ln=0;
  23. do {
  24. printf("Podaj liczbe\n");
  25. scanf("%d",&x);
  26. if(x%2==0){
  27. sp=sp+x;
  28. lp++;
  29. }
  30. else
  31. {
  32. sn=sn+x;
  33. ln++;
  34. }
  35.  
  36.  
  37. } while(x!=0);
  38. if(lp!=0)
  39. {
  40. srp=sp/lp;
  41. printf("Srednia parzystych: %d ", srp);
  42. }
  43. if(ln!=0)
  44. {
  45. srn=sn/ln;
  46. printf(" srednia nieparzystych %d", srn);
  47. }
  48.  
  49. return 0;
  50. }
  51.  
  52.  
  53. int main()
  54. {
  55. int l=0;
  56. float a,b;
  57. printf("Podaj wyplate\n");
  58. scanf("%f", &a);
  59. printf("Podaj oprocentowanie w procentach\n");
  60. scanf("%f", &b);
  61. float c=2*a;
  62. b=b/100;
  63.  
  64.  
  65. while(a<c)
  66. {
  67. a=a+(a*b);
  68. l++;
  69. }
  70. printf("Kwota koncowa wynosi %f , po %d miesiacach", a , l);
  71. return 0;
  72. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement