Adding two numbers
Program code: Output: where, int sum=0: A variable can be initialized during the declaration process. This is usually done to ensure that the value to be used in the future is not set to some random value at the start. sum = x + y: The addition operation is performed by this statement. Note: also […]
November 5, 2022 | C++ | No comments