Write a program that calculates and prints the sum of 6 and 8.


Difficulty level
This exercise is mostly suitable for students
#include <stdio.h>
void main()
{
	int i,j,k; // Defining variables  Statement A
	i = 6;    // Statement  B
	j = 8;
	k = i + j;
	printf("sum of two numbers is %d \n",k); // Printing results
}


Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Merge two arrays into a third sorted array