source code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dilsa
    New Member
    • Oct 2006
    • 1

    #1

    source code

    c++ code for printing a series like this
    4
    44
    444
    4444
  • Etaks
    New Member
    • Oct 2006
    • 7

    #2
    Just to say those numbers?, i think i can do that.

    The beginning if familiar, so i will go on the important part.

    coute << "44" << endl;
    coute << "444" << endl;
    coute << "4444" << endl;

    Dunno if its right, i began yesterday programming so plz correct me if im wrong.;)

    Comment

    • dtimes6
      New Member
      • Oct 2006
      • 73

      #3
      #include <iostream>

      int main() {
      const number = 4;
      for( unsigned i = 0; i < number; ++i) {
      std::cout<< number<< " " <<std::endl;
      }
      return 0;
      }

      Comment

      Working...