Sigh, I really don't support this "conversion" business. It is totally the wrong way to do homework, and it will kill you in a test/exam. Understand the algorithm, don't just convert code blindly.
...
Type: Posts; User: laserlight
Sigh, I really don't support this "conversion" business. It is totally the wrong way to do homework, and it will kill you in a test/exam. Understand the algorithm, don't just convert code blindly.
...
Err... System.out.print? I recall document.write for Javascript.
Ah, so you're writing Javascript.
The basic idea is that given r rows and c columns for a character x, assuming that both r and c are at least 2:
Loop c times
Print x
Print a new line...
That is besides the point. Pretty much all students learn mathematics at some level, but obviously "I'm not trying to become a professional mathematician" is a lame excuse for a student trying to...
Right. Thread moved to Tech Board.
Anyway, instead of just finding code online and trying to convert it, why don't you spend some effort to understand the algorithm and then implement it in...
Is this supposed to be C or Javascript?