fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.  
  6. age= int(input("Please enter your age: "))
  7. if age=20
  8. print("Eligible")
  9. else:
  10. print("Not Eligible")
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:1: error: ‘age’ undeclared (first use in this function)
 age= int(input("Please enter your age: "))
 ^~~
prog.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
prog.c:6:6: error: expected expression before ‘int’
 age= int(input("Please enter your age: "))
      ^~~
prog.c:10:5: error: expected declaration or statement at end of input
     print("Not Eligible")
     ^~~~~
stdout
Standard output is empty