Professional Documents
Culture Documents
expressions
Wehavelearntvariableupdatesinvolvingexpressionsinthisweek(eg.
redefiningavariablesnewvalueintermsofitselfcomputedusingan
expression).Wewillhaveagradedlabnextweekinvolvingthese
concepts.Sincewehaventconductedanungradedlabfortheseconcepts,
hereareacoupleofpracticequestionsthatyoucantryonPrutor.
1.Drawspiralasshowninfigurebelow.
2.
Findthesumoftheexpressionoftheform
n*1k
+(n1)*2k
+..+1*nk
andprintitastheoutput.Takenandkastheinput.