.?=False\rEndSub\rFunctionItem(A,k)\rDimPAsString,QAsString,SAsSingle\rDimiAsInteger,HAsSingle\rNN\rP=\rFori=1Tok\rQ$=Str$(A)\rpS=pS+Q$\rNexti\r'?=Vai(PS)\r'H=`+S\rItem=II\rEndFunction\rab\rOptionExplicit\rPrivateSubCOMEXITClick()\rEnd\rEndSub\rPrivateSubCOMSTARTClick()\rDimAAsInteger,NAsInteger,JAsInteger,SumAsSingle\rA=8:N=4\rForJ=NTo1Step-1\rIfJ=NThen\rSum=Item(A,J)\rElse\rSum=Sum-Item(A,J)\rEndIf\rNext\rPrint"Sum=NOSum\rOpenApp.Path&N\N&NsjtS.datNForOutputAs#1EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rPrint#1,Sum\rClose#1\rCOMSTART.Caption=NWXN\rCOMSTART.Enabled=False\rEndSub\rFunctionItem(A,k)\rDimPAsString,QAsString,SAsSingle\rDimiAsInteger,HAsSingle\rNN\rp=\rFori=1Tok\rQ$=Str$(A)\rPS=PS+Q$\rNexti\rS=Vai(PS)\rII=II+S\rItem=H\rEndFunction\rcdef`gh??\rcijklmnop\r