//Addition of 2 nos. with third variable
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\nEnter the value for a & b\n\n");
scanf("%d%d",&a,&b);
c=a+b;
printf("\nAddition=%d",c);
getch();
}
Hope you liked my posts, give comments if you have any doubts…:)#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\nEnter the value for a & b\n\n");
scanf("%d%d",&a,&b);
c=a+b;
printf("\nAddition=%d",c);
getch();
}
Categories:
c program
0 comments:
Post a Comment