Ask Question
27 August, 15:16

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

+1
Answers (1)
  1. 27 August, 15:25
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers