Algorithm of adding two numbers:
- Start
- Take x and y
- Add Z=x+y
- Print Z
- End
In Details
- Take three value 'x' 'y' 'z'
- Values of 'x' and 'y' taken by user (by printf and scanf function)
- Adding values of 'x' and 'y'
- z = x+y, Means 'z' store the result of adding of 'x' and 'y' values
- then , Print 'z' (return z)