#include <iostream>
#include <string>
using namespace std;
int main() {
string userInput;
cout << "Enter word" << endl;
cin >> userInput;
cout << "you entered" << endl;
cout << userInput;
return 0;
}
Answer:
i think the answer is body language
Explanation:
body language is non-verbal
Answer:
Technician B is correct only
Explanation:
The actions of technician b helps to eliminate uneven rotating speed which causes vibrations.
The answer is true.
Explanation:
The scanner class's methods are the methods in java.util, which allows the user to read values of various types. If the nextLine is issued after a numeric read and the numeric value is at the end of the line, nextLine returns the empty string.
The problem occurs when you click the enter key which is a new line \n character. nextInt() has only the integer but skips the new line \n.
To solve this problem, you have to add the input.nextLine() after reading the int it will consume the \n.
Hence, make input.nextLine(); call after input.nextint(); which reads till end of life.