Addition of two numbers with C coding - The Incredible Truth

Addition of Two numbers with C-Programming

#include <stdio.h>          /*linking section*/
#include <conio.h>
void main()           /*program section*/
int X,Y,Z;               /* variable declaration statement*/
clrscr();               /*clears the output screen*/
printf(“\n Enter X and Y: “);
scanf (“%d%d”, &X, &Y);                 /*data input statement*/
Z=X+Y;                   /*data processing statement*/
printf (“\n Sum of the numbers: %d”, Z);                /*data output statement*/

See Also:
Introduction to C-Programming: Introduction to C-Programming

Simple C-Programming examples


Post a Comment

Popular Posts