How to write c program for addition of two number?

realNameHidden - May 24 '23 - - Dev Community

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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .