Addition of Two Number - C Language Programming

Program in C language to addition of two integer value.



Click here to open this program in Turbo C++

/*******************************************
Statement - Addition of two number
Programmer - Vineet Choudhary
Written For - http://developerinsider.co
********************************************/
#include <stdio.h>
#include <conio.h>

void main()
{
	int a, b, c;
	clrscr();
	printf("Enter two numbers to add\n");
	scanf("%d%d",&a,&b);
	c = a + b;
	printf("Sum of entered numbers = %d\n",c);
	getch();
}

/************************************************
Output -  
Enter two numbers to add  
2
3
Sum of entered numbers = 5
************************************************/
Join

Search articles

Search titles, tags and article content.

    You've successfully subscribed to Developer Insider
    Your account is ready. Welcome to Developer Insider
    Welcome back! You've successfully signed in
    Success! Your account is fully activated, you now have access to all content.