I had little experience with C++ and there is this function which I really like about it:
(this is a simple example for a calculator with only addition)
#include <iostream>
using namespace std;
int main(){
int a, b;
cout << "insert numbers and calculations" << endl;
cin >> a >> b;
cout << a + b << endl;
return 0;
}
I really like the cin
system since you can have multiple inputs at the same time. But on Python, I only one at the same time like this:
float a = 0
float b = 0
a = input("insert fist number")
b = input("insert the second number")
print(a + b)
I want to find a way to have multiple inputs at the same time similar to the cin
syntax. What are the solutions to this problem?