write a c program to add two numbers
c- program
write a C- program to add two numbers
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int a,b,sum;
- clrscr();
- printf("enter the two numbers ");
- scanf("%d\n%d\n",&a&b);
- sum= a+b;
- printf("the sum of the given number is =%d",sum);
- getch();
- }
output
the output is
enter the two numbers
2
3
the sum of the given numbers is = 5
Comments
Post a Comment