Showing posts with label WAP to add two variables. Show all posts
Showing posts with label WAP to add two variables. Show all posts

ADD TWO VARIABLES

WAP to add two variables

#include

void main ()

{

int a,b,c;

clrscr();

printf ("Enter A: ");

scanf ("%d",&a);

printf ("Enter B: ");

scanf ("%d",&b);

c=a+b;

printf ("\nSum is %d",c);

getch ();

}


Output



Labels