Horje
c program to add two numbers Code Example
Write a c program to add two numbers without using addition operator.
#include <stdio.h>
#include <stdlib.h>
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<num2; i++){
   num1++;
    }
printf("Sum of two numbers : %d ",num1);
    return 0;
}
add 2 numbers in c
#include<stdio.h>
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
C program to addition of two numbers
#include <stdio.h>int main(){ int a, b, sum;printf("Enter two integers");scanf("%d %d", &a, &b);sum = a + b; printf("%d + %d = %d", a, b, sum);return 0;}
Source: inlarn.com




Whatever

Related
how to build a nether starter house minecraft Code Example how to build a nether starter house minecraft Code Example
is Pakistan a terrorist state Code Example is Pakistan a terrorist state Code Example
bottom alert snackbar Code Example bottom alert snackbar Code Example
how to increase the size of thetable cell in famdon Code Example how to increase the size of thetable cell in famdon Code Example
how to convert date time in linq Code Example how to convert date time in linq Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8