Know C Programs

Addition Operation

C program to add two numbers and display the result.


#include<stdio.h>
#include<conio.h>
main()
{
int a,b,sum;
clrscr();
printf("Enter two numbers: ");
scanf("%d %d",&a,&b);
sum=a+b;
printf("The sum is %d",sum);
return 0;
}
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Post Older Post Home

You Might Also Like

  • Print A Design-II
  • Reverse A String
  • Copy A String
  • Print A Design-III
  • Print A Design-IV
  • Print A Design-V
  • Addition Operation
  • Print A Message
  • Concatenation
  • Swapping Numbers

Tags

Basic (5) Design (5) Function (3) Program (13)

In-Store

  • ▼  2014 (13)
    • ►  April 2014 (4)
    • ▼  February 2014 (9)
      • Print A Design-IV
      • Print A Design-III
      • Print A Design-II
      • Print A Design-I
      • Addition Operation
      • Addition Of The Digits Of A Number
      • Swapping Numbers
      • Temperature Coversion
      • Print A Message

Looking For Something? Search Here!

Travel theme. Theme images by dino4. Powered by Blogger.