• Want to help us with this year's BoS Trials?
    Let us know before 30 June. See this thread for details
  • Looking for HSC notes and resources?
    Check out our Notes & Resources page

Search results

  1. R

    C++ Problems, please help!

    Hey all, its me again.... Im just wondering how to represent 5^5 (5*5*5*5*5) in C++ without using the power function? The teacher asked us to write a program when the user enter a number, it will display the power of that number, so if the user enters 4, the output would be 4*4*4*4, 3...
  2. R

    C++ Problems, please help!

    Thanks |axis_ you are the best! :D
  3. R

    C++ Problems, please help!

    Our class is practising how to write C++ codes without using 'break' and 'continue'. Our teacher wants us to re-write the code above without using 'break' and 'continue' yet the codes will still produce the same output. I put the codes into Visual C++ and the output is 2. However, I can't...
  4. R

    C++ Problems, please help!

    Hey all, Im doing my SDD homework and im stuck with this C++ question: Rewrite the following code segment without using break and continue. for (int i=0; i < 30; i+=2) { if (i % 2) continue; if (i % 3) cout << i << endl; if (i % 7) break; } The problem is I've tried so...
Top