fork download
  1. #include <stdio.h>
  2. #include <stdio.h>
  3.  
  4. int main() {
  5. int nilai;
  6. scanf("%d", &nilai);
  7.  
  8. if (nilai >= 85)
  9. printf("predikat A");
  10. else if (nilai >= 70)
  11. printf("predikat B");
  12. else if (nilai >= 60)
  13. printf("predikat C");
  14. else
  15. printf("predikat D");
  16.  
  17. return 0;
  18. }
  19.  
  20.  
  21.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
predikat A