Helllo friends here is programming for two number addition. It is easy and simple program for students. To write this code you need to know basic of C language so you can easily write this code.
Two numbers addition code for C
#include<stadio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf ("Enter first number=");
scanf("%d,&a);
printf("Enter second number=");
scanf("%d,&b);
c=a+b;
printf ("Addition=%d",c);
getch();
}
Out put:
Enter first number=12
Enter second number=10
Addition=22
Bingo you just write your first program in c language. Keep it up and make more programs and enjoy.
Two numbers addition code for C
#include<stadio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf ("Enter first number=");
scanf("%d,&a);
printf("Enter second number=");
scanf("%d,&b);
c=a+b;
printf ("Addition=%d",c);
getch();
}
Out put:
Enter first number=12
Enter second number=10
Addition=22
Bingo you just write your first program in c language. Keep it up and make more programs and enjoy.
No comments:
Post a Comment