Algorithm of adding two numbers:

  1. Start
  2. Take x and y
  3. Add Z=x+y
  4. Print Z
  5. End

In Details

  1. Take three value 'x' 'y' 'z'
  2. Values of 'x' and 'y' taken by user (by printf and scanf function)
  3. Adding values of 'x' and 'y'
  4. z = x+y, Means 'z' store the result of adding of 'x' and 'y' values
  5. then , Print 'z' (return z)