Skip to main content

Posts

Showing posts with the label 1. Write a C program to enter two numbers and find their sum.

ads1

1. Write a C program to enter two numbers and find their sum.

 1. Write a C program to enter two numbers and find their sum. Solution :- #include<stdio.h> #include<conio.h> void main() {     clrscr();     int a,b,add;     printf("Enter the first number :-");     scanf("%d",&a);     printf("Enter the Second number:- ");     scanf("%d",&b);     add = a+b;     printf("The Sum of two number is :- %d",add); getch(); }    Output :-   

ads2