Here, we practice main function as a returning value, so we kept int main for returning some value. This program will take two numbers from user of the program and put it in a and b variable. For input we have used scanf. The specifier %d inside scanf denoted certain value to be put in a and b. After processing, the result is displayed. We return 0 value for ensuring that the programing ran sucessfully.
Output
Here the input is given by using comma, just like the comma used in program inside scanf.
Exercise:
Find out difference of any two numbers given by the user.
If you have any doubt, let me know...