Ask Question
28 August, 16:03

Ask the user to input an integer. Print out the next three consecutive numbers.

+3
Answers (1)
  1. 28 August, 17:59
    0
    Codes are given below:

    Explanation:

    Since the language is not specified, I am writing it in c++

    #include

    using namespace std;

    int main () / /Start of main function

    {

    int number;

    cout << "Enter your number"<
    cin >> number; / /this will take your number as an input

    cout <<"The next three numbers are: " << number + 1 << endl; / /this will write the next number to your input input

    cout << number + 2 << endl;

    cout << number + 3 << endl;

    return 0;

    } / /End of main function
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Ask the user to input an integer. Print out the next three consecutive numbers. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers