Help .. I'm supposed to make a java program that will create an output of increament whre the last number is 10 and the series is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 .. it's like counting to 10.. we're supposed to use a do-while loop or while loop... either java or C++ is fine with me ... thank you very much .. ☺

Then try the appropriate forum. This is c#

Help .. I'm supposed to make a java program that will create an output of increament whre the last number is 10 and the series is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 .. it's like counting to 10.. we're supposed to use a do-while loop or while loop... either java or C++ is fine with me ... thank you very much .. ☺

#include <iostream>
int main()
{
    int i = 1;
    do
    {
       std::cout << i ;
       std::cout << endl;
       i++;
    } while (i < 11); 
    return 0;
}
commented: Oh wow you can write a trivial program! -1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.