Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {int s,rok;
- float x;
- printf("podaj srednia i rok studiow \n");
- scanf("%f %d",&x,&rok);
- if (rok>1 && rok<6)
- if (x<3) s=00;
- if (x<4 && x>=3) s=100;
- if (x<=4.5 && x>=4) s=150;
- if (x>4.5) s=200;
- printf("stypendium wynosi %d",s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement