Hi, I am Ankit and I am going to describe a very simple program in C for addition of two numbers.
Program:
#include<stdio.h>
#include<conio.h>
=========================================================================
void main()
{
int a,b,sum;
printf("Enter first no-");
scanf("%d",&a);
printf("Enter second no-");
scanf("%d",&b);
sum=a+b;
printf("Sum=%d",sum);
getch();
}
=========================================================================
If you want more program then leave comment for your help..
=========================================================================
Program:
#include<stdio.h>
#include<conio.h>
=========================================================================
void main()
{
int a,b,sum;
printf("Enter first no-");
scanf("%d",&a);
printf("Enter second no-");
scanf("%d",&b);
sum=a+b;
printf("Sum=%d",sum);
getch();
}
=========================================================================
If you want more program then leave comment for your help..
=========================================================================
No comments:
Post a Comment