fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int marks;
  5. printf(" please enter number: ");
  6. scanf ("%d",&marks);
  7. marks>90 ? printf("your grade is A")
  8. :(marks>=75)? printf("your grade is B")
  9. :(marks>=50)? printf("yor grade is c")
  10. :(marks>=30)? printf("your grade is D")
  11. :printf("you fail the exame");
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
 please enter number: your grade is A