ADD ANY TWO NUMBER IN C



ADD ANY TWO NUMBER IN "C"






#include<stdio.h>

int main ()
{

int a,b,c;

printf("enter two number to add\n");
scanf("% d % d", & a, & b);

c=a+b;

printf("sum of entered number=%d\n",c);
return 0;
}




output
enter two number to add
5
sum of entered number=9












Image result for addition two number in c







Image result for addition two number in c











    1. #include<stdio.h> 
    2. int main()
    3. {
    4.    int a, b, c;
    5.    
    6.    printf("Enter two numbers to add\n");
    7.    scanf("%d%d", &a, &b);
    8.    
    9.    c = a + b;
    10.    
    11.    printf("Sum of the numbers = %d\n", c);
    12.    
    13.    return 0;
    14.                                                                                                                                                                                  





Comments

Popular posts from this blog

Trading Live Advance Chart Source code HTML CSS & JS

How to show live Cryptocurrency Price In your website Using HTML CSS, AND JavaScript

Learn Python 2024 by gaurav tripathi