Google no help, with my brain anyhow.
http://tinyurl.com/yez6rnr
Numbers 1 to 10, original squared and cubed, displayed like a table.
This cause an error, as it stands:
illegal character:\92
It's the "\"
public class table
{
public static void main(String [] args)
{
int Number = 0;
int Squared = 0;
Squared = (Number*Number);
int Cubed = 0;
Cubed = (Squared*Number);
for (Number = 1; Number <= 10; Number = Number+1)
System.out.print\n("Number Squared Cubed"); // this line was
the hint we were given
}
}
--
Regards,
Frank Murphy
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!