Computer Science, asked by ushmikarawal0308, 5 months ago

1.
What will be output produced by following code
Name 'ahana
Age 18
Print (name, "you are" , age, "now but“)
Print ("you will be", age+1, "next year")​

Answers

Answered by allysia
0

Corrections:

Let me correct the codes a bit first:

____________________________

Name="ahana "

Age=18

print (Name, "you are" , Age, "now but“)

print ("you will be", Age+1, "next year")​

____________________________

_You choose to can ignore after this_

grammar correction:

____________________________

Name="Ahana "

Age=18

print ("You are",Name,  Age, "now, but“)

print ("you will be", Age+1, "next year.")​

____________________________

Answer:

The output of 1st one(code correction) will be:

_____________________________

ahana you are 18 now but

you will be 19 next year

_____________________________

_You choose to can ignore after this_

The output of 2nd one(grammar correction) will be:

_____________________________

You are Ahana 18 now but,

you will be 19 next year.

_____________________________

Similar questions