Friday, September 1, 2023

Create an universal program to add two integer numbers

// Create an universal program to add two integer numbers

 #include <iostream>

using namespace std;

int main()

{ int a,b,c;

cout <<"a=";

cin >> a;

cout <<"b=";

cin >> b;

c=a+b;

cout << a<<"+"<<b<<"="<<c;

    return 0;

}

No comments:

Post a Comment

Basic Comparison of C++ and HTML/JavaScript

 Here’s a basic comparison of C++ and HTML/JavaScript for common programming concepts and  simple code examples for each. This will help ...