--- in c programming
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float a,b,add;
printf("enter the first value:");
scanf("%f",&a);
printf("enter the second value:");
scanf("%f",&b);
add =a+b;
printf('add:%f",add);
getch();
}
--- in c++ programming
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float a,b,add;
cout<<"enter the first value:";
cin>>a;
cout<<"enter the second value:";
cin>>b;
add =a+b;
cout<<"add:"<<add;
getch();
}