#include <stdio.h> int main(void) { age= int(input("Please enter your age: ")) if age=20 print("Eligible") else: print("Not Eligible")
Standard input is empty
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") ^~~~~
Standard output is empty