c program to add two numbers

[ad_1]

add 2 numbers in c
#include
int main() {
int a, b, sum;
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
c program to add two numbers
Enter two integers: 12
11
12 + 11 = 23
Write a c program to add two numbers without using addition operator.
#include 
#include 
int main()
{
    int num1,num2,i;  //Variable declaration
    printf("Enter the first number: ");
    scanf("%d",&num1); 
    printf("Enter the second number: ");
    scanf("%d",&num2);
    for(i=0; i

[ad_2]

Content Protection by DMCA.com
Please Share