Basic Addition program in c




#include <stdio.h>
main ()
{
    int num1, num2 , sum;
    printf("enter the two integer values to be added");
    scanf ("%d %d", &num1 ,&num2);
    sum=num1+num2;
    printf("addition of %d and %d = %d \n", num1 , num2 ,sum);
}

Comments

Popular posts from this blog

Name Age program in C

How to make basic TicTacToe game in C

How to make Simple Calculator in C