12. Program to Add Two Integers

void main()
{
int a=10,b=20,c;
clrscr();
printf("%d",a+b);
getch();
}

Comments

  1. #include
    #include
    void main()
    {
    int a,b,c;
    printf("enter two no");
    scanf("%d%d",&a,&b);
    c=a+b;
    printf("%d",c);
    getch();
    }

    ReplyDelete

Post a Comment