Open Means Open Means

This is the most basic program in any programming language...

 

 

#include                                                              // Header file

#include                                                             // Header file

void main()                                                                         // Main function

{

int a,b;                                                                                 // Define variables

clrscr()                                                                                 // Clear screen

printf(" Enter the first number: \n");

scanf("%d",&a);                                                                  // Input augend

printf(" Enter the second number: \n");

scanf("%d",&b);                                                                  // Input addend

a=a+b;                                                                                 // Addition Operation

printf(" The result is : %d ",a);                                           // Print the result

getch();

}

**************************************************** Output ****************************************************

Enter the first number: 5

Enter the second number: 8

The result is: 13

 

No comments

Login to post a comment

Show
  • Create an account
  • Forgot your username?
  • Forgot your password?

Related Articles

  • North Korea- A Dangerous Nuclear Power
  • BISECTION METHOD
  • Binary Tree programing.
  • A Good Example of Visual Basic Programme(Insert, Update, Delete and Record navigation)
  • Computer Q&A for K12 (+2) - Part V
  • DEVELOPING A “C PROGRAM”
  • C Program to compare two numbers.....
  • Introduction to C Language
  • Gene: History, Types of genes, Changes in the genes, Regulation and genetic program
  • About Us
  • Faqs
  • Contact Us
  • Disclaimer
  • Terms & Conditions