Advertisement
zsoltizbekk

orai

Mar 4th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int pont, erdemjegy;
  7.     scanf("%d", &pont);
  8.     erdemjegy=0;
  9.     if (90<=pont && pont<=100)
  10.             erdemjegy=5;pont
  11.     if (80<=pont && pont<90)
  12.             erdemjegy=4;
  13.     if (70<=pont && pont<80)
  14.             erdemjegy=3;
  15.     if (60<=pont && pont<70)
  16.             erdemjegy=2;
  17.     if (0<=pont && pont<60)
  18.             erdemjegy=1;
  19.     if (erdemjegy==0)
  20.         printf("rossz ertek");
  21.     else
  22.         printf("jegy=%d\n", erdemjegy);
  23.  
  24.  
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement