-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Description
Last 200 Keys:
( e [ i ] . s a l a r y > = 1 5 0 0 ) ; Enter
Space Space Space Space Space Space Space Space { Enter
Space Space Space Space Space Space Space Space Space Space Space Space p r i n t f ( " N a m e = % s \ n I D = % d \ n S a l a r y = % f \ n \ n " , e [
i ] . n a m e , e [ i ] . i d , e [ i ] . s a l a r y ) ; " ) ; Enter
Space Space Space Space Space Space Space Space } Enter
Space Space Space Space Space Space Space Space s u m = s u m + e [ i ] . s a l a r y ; Enter
Enter
Space Space Space Space } Enter
Space Space Space Space p r i n t f ( " T o t a l Space s a l a r y = % f " , s u m ) ; Enter
} Enter
Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -2.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.AcceptLineImpl(Boolean validate)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
PS E:\VS Code\C Programming> for (i=0; i<3; i++)
{ if (e[i].salary>=1500); { printf("Name=%s\nID=%d\nSalary=%f\n\n",e[i].name,e[i].id,e[i].salary);"); } sum=sum+e[i].salary; } printf("Total salary=%f",sum);}
Metadata
Metadata
Assignees
Labels
No labels