Write a program to add two numbers in C lanuage - World Of Programs

World Of Programs

Let's Be The Coder

Recent Tube

Post Top Ad

Write a program to add two numbers in C lanuage

Write a program to add two numbers in C lanuage

Share This
write a program to add two numbers in C language

#include <stdio.h>
#include <conio.h>
int main()
{
int a,b,sum;

printf("Enter two numbers to add\n");
scanf("%d%d",&a,&b);

sum=a+b;
printf("Sum of the entered numbers=%d\n",sum);

return 0;
}

OUTPUT: -

Enter two numbers to add
7
3
Sum of the entered numbers= 10

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here

Pages