+ 1
how can we ask user to give input (integers) like this in character array..
Input 4 5 7 and we can read 4 ,5 and 7 as different integers
4 Antworten
+ 1
Specify the language as it differs from language to language
+ 1
c++
0
c++ :
#include <iostream>
using namespace std;
int main(){
int x;
x << cin;
};
python:
x = intput()
-=-=-=-=-=-
I think python makes it easier ... 😉
0
inputs are Strings default but can be changes to Integer or ...
When you have multiple inputs in Sololearn you write ever input in another line.