Hi Friends
Today I Am going to show you How can you add two numbers through c programming
This is the basic program of c language
Lets start
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,s;
clrscr();
// entry of two numbers//
printf("Enter first no:=");
scanf("%d",&a);
printf("\nEnter 2nd number=");
scanf("%d",&b);
//addition
s=a+b;
printf("\n sum =",s);
getch();
}
Video Screenshot
Today I Am going to show you How can you add two numbers through c programming
This is the basic program of c language
Lets start
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,s;
clrscr();
// entry of two numbers//
printf("Enter first no:=");
scanf("%d",&a);
printf("\nEnter 2nd number=");
scanf("%d",&b);
//addition
s=a+b;
printf("\n sum =",s);
getch();
}
Video Screenshot