Here I use Turbo C++ IDE.
#include <iostream.h>
#include <conio.h>
int main() {
int a, b, c;
cout<<"Insert 1st value = ";cin>>a;
cout<<"Insert 2nd value = ";cin>>b;
c = a + b;
cout<<"The result of 1st + 2nd value is = ";cout<<c;
}
You could modify the script above as your necessary.
0 comments:
Post a Comment