Ad Code

WRITE A PROGRAM TO CALCULATE THE SUM OF TWO NUMBERS.

Write a program to calculate the sum of two numbers.





#inlcude <stdio.h>

#include <conio.h>

void main()

{

int A,B,C;

clrscr();

printf(“Enter the first number:”);

scanf(“%d”,&A);

printf(“\nEnter the second number:”);

scanf(“%d”,&B);

C=A+B;

printf(“%d”,C);

getch();

}

Output:- 

Post a Comment

0 Comments

Ad Code