Advertisement
dzieciol

Labolatorium II zadanie 5

Oct 25th, 2015
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {int s,rok;
  6. float x;
  7.     printf("podaj srednia  i rok studiow \n");
  8.     scanf("%f %d",&x,&rok);
  9.  
  10.  
  11.    if (rok>1 && rok<6)
  12.         if (x<3) s=00;
  13.         if (x<4 && x>=3) s=100;
  14.         if (x<=4.5 && x>=4) s=150;
  15.         if (x>4.5) s=200;
  16.         printf("stypendium wynosi %d",s);
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement