Addition of two numbers

 #include <stdio.h>

 

int main()

{

    int a, b;

    printf("Enter the value of a\n");

    scanf("%d", &a);


    printf("Enter the value of b\n");

    scanf("%d", &b);


    printf("The sum of a and b is %d", a + b);

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function