0% found this document useful (0 votes)
34 views1 page

Sum of Two Number

This C program asks the user to input two numbers, stores them in variables a and b, calculates their sum by adding a and b and storing the result in the variable sum, and prints out the sum.

Uploaded by

Kamala Nathan E
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

Sum of Two Number

This C program asks the user to input two numbers, stores them in variables a and b, calculates their sum by adding a and b and storing the result in the variable sum, and prints out the sum.

Uploaded by

Kamala Nathan E
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1 sum of two number

#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, sum;
clrscr();
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
getch();
}

You might also like