SUM of two number C Programming | Run : CppDrpid; Android - NRTrickHub

Latest Update

Wednesday, October 05, 2016

SUM of two number C Programming | Run : CppDrpid; Android

Source Code:

Run on CppDroid or Turbo C/ C++

//Sum of two numbers
#include<stdio.h>
int main()
{
    int A, B, C=0;
    printf("Enter value of A: ");
    scanf("%d",&A);
    printf("Enter value of B: ");
    scanf("%d",&B);
    // Enter formula of Sum
    C = A+B;
    printf("Sum =%d",*&C);
    //use * before &
    getch();
 
    return 0;
 
}

Output :

Enter value of A: 12
Enter value of B: 43
Sum =55


for other arithmetic :
Minus : "+" Replace to "-"
Multiply : "+" Replace to "*"
Devide : "+" Replace to "/"


YouTube Watch :

No comments:

Post a Comment