Search the Whole World Here.,.,

C Program : Addition of two numbers using Scanf Function





#include<stdio.h>
#include<conio.h>

void main(){
                int a,b,sum;
                clrscr();

                printf("Enter 1st no. ");
                scanf("%d",&a);

                printf("Enter 2nd no. ");
                scanf("%d",&b);

                sum = a+b;
                printf("Sum of a & b is  %d",sum);
                   
                         getch();
                 }


Watch this video for more :


Ads by Google