Addition of two numbers || Arithmetic programs || C programming

Here we are going to see Addition two numbers in C Programming Language.


#include <stdio.h>

void main()
{
    //Variable declaration
    int num1, num2, result;
    printf("Enter two numbers: ");

    //Taking User input
    scanf("%d %d", &num1, &num2);

    //Calculating Addition
    result = num1 + num2;

    //Printing Answer
    printf("The Sum of the two numbers is: %d", result);
}

//......Coded by VARAD PATIL
#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post