Posts

Showing posts with the label Program for Addition of two input number using 'C'

Program for Addition of two input number using 'C'.

# include <stdio.h> #include<conio.h> void main() {    int num1, num2, sum; //declaration    printf("Enter first number: "); //for input     scanf("%d", &num1);    printf("Enter second number: "); //for input    scanf("%d", &num2);    sum = num1 + num2; //addition    printf("Sum of the entered numbers: %d", sum);    clrscr(); }