DEV Community

realNameHidden
realNameHidden

Posted on

How to write c program for addition of two number?

code:

#include<stdio.h>
int main(){
    int a,b;
    printf("Enter the two numbers for addition:");
    scanf("%d %d",&a,&b);
    printf("\n%d",a+b);
    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)