Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- int x1,x2,x3,y,q;
- scanf("%d%d%d", x1,x2,x3);
- if(x3/x2==x2/x1) q=x3/x2;
- y=x3*q
- while()
- {
- }
- }
- /*int main() {
- int x,srp,srn;
- int sp=0;
- int sn=0;
- int lp=0;
- int ln=0;
- do {
- printf("Podaj liczbe\n");
- scanf("%d",&x);
- if(x%2==0){
- sp=sp+x;
- lp++;
- }
- else
- {
- sn=sn+x;
- ln++;
- }
- } while(x!=0);
- if(lp!=0)
- {
- srp=sp/lp;
- printf("Srednia parzystych: %d ", srp);
- }
- if(ln!=0)
- {
- srn=sn/ln;
- printf(" srednia nieparzystych %d", srn);
- }
- return 0;
- }
- int main()
- {
- int l=0;
- float a,b;
- printf("Podaj wyplate\n");
- scanf("%f", &a);
- printf("Podaj oprocentowanie w procentach\n");
- scanf("%f", &b);
- float c=2*a;
- b=b/100;
- while(a<c)
- {
- a=a+(a*b);
- l++;
- }
- printf("Kwota koncowa wynosi %f , po %d miesiacach", a , l);
- return 0;
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement