Ask Question
29 December, 12:57

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

+3
Answers (1)
  1. 29 December, 13:53
    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?
Find an answer to your question ✅ “Ask the user to input an integer. Print out the next three consecutive numbers. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers