Ad Code

Responsive Advertisement

Write a program to Addition of two numbers.




#include<stdio. h>
void main()
{
   system("clear") ;
    int a, b, c;
 
    printf("Enter a number of A ") ;
    scanf(" %d", &a);
    printf("Enter a number of B ") ;
    scanf(" %d", &b);
 
    c=a+b;
 
    printf("The addition of two numbers is %d", c) ;
}

Output

Enter a number of A 25
Enter a number of B 25
the addition of two numbers is 50

Post a Comment

0 Comments