addition program a and b
write a program addition a and b
#include <stdio.h>
#include<conio.h>
void main ()
{
clrscr ( );
int a,b,c;
printf ("enter the value of a");
scanf (" %d", &a);
printf ( "enter the value of b");
scanf (%d",&b);
c=a+b;
pintf ("addition=%d\n);
getch();
}
output let write the value of a 12
write the value of b 13
addition 12+13=25
#include <stdio.h>
#include<conio.h>
void main ()
{
clrscr ( );
int a,b,c;
printf ("enter the value of a");
scanf (" %d", &a);
printf ( "enter the value of b");
scanf (%d",&b);
c=a+b;
pintf ("addition=%d\n);
getch();
}
output let write the value of a 12
write the value of b 13
addition 12+13=25
Comments
Post a Comment