0

Addition of two numbers and store result in the third number

Remarks:- Here I am using Dev C++ IDE  v5.11, I am writing code over this IDE. Please make sure your version before running my code over your machine .

1.Write a program to add two numbers and store result in the third number.

#include<stdio.h>

main()

{

            int firstNumber,secondNumber,result;

            printf(“Enter First Number”);

            scanf(“%d”,&firstNumber);

            printf(“Enter Second Number”);

            scanf(“%d”,&secondNumber);

            result=firstNumber+secondNumber;

            printf(“Result %d”,result);

}

Admin

Leave a Reply

Your email address will not be published. Required fields are marked *