
LANGUAGE: JAVA
CHALLENGE:
Given an int variable datum that has already been declared, write a few statements that read an integer value from standard input into this variable.
SOLUTION:
Scanner input = new Scanner(System.in); datum = input.nextInt();
for C++
input.open(“rawdata”, ios::in);
input >> datum;
input.close();
This worked.. Thank you Austin.. The word problem was for C++ for my scenario.