fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int age;
  5. printf("enter your age: ");
  6. scanf("%d", &age);
  7.  
  8. if("age < 20 ")
  9. {
  10. printf("\n\nyou are minor wait %d years" , 20 - age );
  11. }
  12. else
  13. {
  14. printf("\nyou are not minor ");
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0.03s 25916KB
stdin
Standard input is empty
stdout
#include <stdio.h>
int main()
{
  int age;
  printf("enter your age: ");
  scanf("%d", &age);
  
  if("age < 20 ")
  {
    printf("\n\nyou are minor wait %d years" , 20 - age );
  }
  else
  {
    printf("\nyou are not minor ");
  }
  return 0;
}