CODING CLUB :
A. Find errors in the given codes.
1. a = 1
if a 5:
print "This shouldn't happen."
else:
print "This should happen."
2. a= float(input(“enter your age”)
if a>18:
print (“you are eligible for voting”
Answers
Answered by
1
Answer:
int a = 1;
if ( a = 5)
System.out.println(" This shouldn't happen.");
else
System.out.println(" This shouldn happen.");
2.
float a;
System.out.println(" Enter your age ");
if a > 18;
System.out.println(" you are eligible for voting");
Similar questions