Program in C to add two numbers

Write a program in C to add two numbers

#include <stdio.h>

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 ();
}


Post a Comment