Subscribe

Header Ads

Write a program in C to add 2 numbers



Program in C to add 2 numbers (DEV C++)

#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
printf("Enter a number = ");
scanf("%d",&a);
printf("Enter another Number = ");
scanf("%d",&b);
c=a+b;
printf("Sum = %d",c);
return 0;
}

Program in C to add 2 numbers (Turbo C++)





Output:- 



Watch the video to make it more clear👇👇


Post a Comment

0 Comments