Addition the two number in c language
#include <stdio.h>
#include<conio.h>
void
main ()
{
// variable
int a, b, sum;
printf ("please enter first num=");
// there is taken input by user
scanf ("%d", &a);
printf ("please enter second num=");
scanf ("%d", &b);
// there will be print your output
printf ("%d", sum = a + b);
}
#include <stdio.h>
#include<conio.h>
void
main ()
{
// variable
int a, b, sum;
printf ("please enter first num=");
// there is taken input by user
scanf ("%d", &a);
printf ("please enter second num=");
scanf ("%d", &b);
// there will be print your output
printf ("%d", sum = a + b);
}
0 comments:
Post a Comment