A Program That Uses the IO Library
#include <iostream>
int main()
{
int num1, num2;
std::cout << "Enter two numbers:" << std::endl;
std::cin >> num1 >> num2;
std::cout << "The sum of " << num1 << " and " << num2 << " is " << num1 + num2 << std::endl;
return 0;
}
A+B Problem
C++
#include <iostream>
int main()
{
int a, b;
std::cin >> a >> b;
std::cout << a + b << std::endl;
return 0;
}
C
#include <stdio.h>
int main()
{
int a, b;
scanf(