Write a Program To Print Addition of two number using C programming Language c program .
1.
Write a Program to Print addition of two number c program - Program Code.
//Write a Program to print additon of two number
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10,b=5,add;
clrscr();
add = a+b;
printf("Addition of two number is %d",add);
getch();
}
PROGRAM :-
OUTPUT :-
2.
Download Program source code
2.
write a Program To take input from user print addition of two number c program - Program Code.
// Write a Program to take input from user print addition of two number
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,add;
clrscr();
printf("Enter the value of a:");
scanf("%d",&a);
printf("Enter the value of b:");
scanf("%d",&b);
add=a+b;
printf("addition of two number is %d",add);
getch();
}
Download Program source code
0 Comments
If You have any query, Please let me know..