fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int marks;
  6. //printf("Enter the marks of child");
  7. scanf("%d",&marks);
  8. if((marks >=50) && (marks <=100))
  9. {
  10. if((marks >=50) && (marks <=60))
  11. {
  12. printf("Child needs improvement");
  13. }
  14. if((marks >60) && (marks <=70))
  15. {
  16. printf("Child can do better");
  17. }
  18. if((marks >70) && (marks <=80))
  19. {
  20. printf("Good Attempt");
  21. }
  22. if((marks >80) && (marks <=100))
  23. {
  24. printf("Excellent");
  25. }
  26.  
  27. }
  28. else
  29. {
  30. printf("Failed");
  31. }
  32. return 0;
  33. }
  34.  
Success #stdin #stdout 0s 2252KB
stdin
67
stdout
Child can do better