Addition of two number in c language
Program:-
#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
clrscr();
printf("enter any number");
scanf("%i\n",&a);
printf("enter other seond number ");
scanf("%i\n",&b);
printf("%i+%i=%i\n",a,b,a+b);
getch();
}
Output:-
enter a=4, b=5
4+5=9
No comments:
Post a Comment