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

N-point Star in Microsoft Visual Studio Console App

#include <windows.h> #include <cmath> #include <iostream> LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,...