Write a program that reads, calculates and prints the sum of 2 numbers.


Difficulty level
This exercise is mostly suitable for students
#include <stdio.h>
main()
{
	int i,j,k;  
	scanf("%d%d",&i,&j);  // statement A
	k = i + j;
	printf("sum of two numbers is %d \n",k);
}


Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Insert an element and keep the stack sorted