herrDeng網內搜尋

自訂搜尋

Ads

2012年3月15日 星期四

用double-for寫9x9乘法

用double-for寫9x9乘法

38 則留言:

b9733028 提到...

public class text2 {
public static void main(String[] args) {
int i,j;
System.out.print(" ");
for (i=1;i<=9;i++)
System.out.print(i + " ");
System.out.println();
for (i=1;i<=9;i++) {
System.out.print(i + " ");
for (j=1;j<=9;j++){
System.out.print(i + "*" + j + "=");
System.out.print(i*j + " ");
if (( i*j ) <10 && j != 1)
System.out.print(" ");
}
System.out.println();
}

}
}

B10033025 提到...

public class hello {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 9) {
while (j <= 9) {
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
j++;
}
System.out.println();
i++;
j = 1;
}
}
}

B10033035 提到...

public class hello {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 9) {
while (j <= 9) {
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
j++;
}
System.out.println();
i++;
j = 1;
}
}
}

B10033050 提到...

public class hello {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 9) {
while (j <= 9) {
⋯⋯ System.out.print(i + "*" + j + "=" + (i * j) + "\t");
j++;
}
System.out.println();
i++;
j = 1;
}
}
}

B10033016 提到...

/*九九乘法表*/
public class b10033016
{
public static void main(String[] args)
{
int i,j; //變數
for(i=1;i<10;i++){
for(j=1;j<10;j++){
System.out.print(i+"*"+j+"="+i*j+" "); //公式
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033004 提到...

public class hello{
public static void main (String [] args){
int i=1,j=1;
while (i<=9){
while (j<=9){
System.out.print(i+"*"+j+"="+(i*j)+"\t");
j++;
}
System.out.println();
i++;
j=1;
}
}
}

B10033032 提到...

public class a99{
public static void main(String[] args)
{
int i,j; //變數
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" "); //公式
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033020 提到...

public class hello{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

b9833163 提到...

public class psp{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

b10033006 提到...

public class lol{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033005 提到...

public class ee {

public static void main(String[] args) {
int i, j;
System.out.print(" ");
for (i=1;i<=9;i++)
System.out.print(i+" ");
System.out.println();

for ( i=1;i<=9;i++){
System.out.print(i+" ");
for(j=1;j<=9;j++){
System.out.print(i+ "*" + j +"=");
System.out.print(i*j +" ");
if((i*j)<10&&j !=1)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033027 提到...

public class a99{
public static void main(String[] args)
{
int i,j; //
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" "); //
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033056 提到...

public class testone{
public static void main (String [] args){
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++)
System.out.print(i+"X"+j+"="+(i*j)+"\t");
System.out.println();
}
}
}

B10033054 提到...

public class hello{

public static void main(String[] args){
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033045 提到...

public class hello {
public static void main(String[] args) {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++)
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
System.out.println();
}
}
}

B10033052 提到...

public class hello {
public static void main(String[] args) {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++)
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
System.out.println();
}
}
}

B10033030 提到...

public class a99{
public static void main(String[] args)
{
int i,j; //變數
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" "); //公式
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

b10033017 提到...

public class a99{
public static void main(String[] args)
{
int i,j; //變數
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" "); //公式
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033013 提到...

public class abc {
public static void main(String [] args) {
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033039 提到...

public class hello{
public static void main(String[] args)
{
int i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=9;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033014 提到...

public class a99{
public static void main(String[] args)
{
int i,j; ⋯⋯ //變數
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" "); //公式
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033021 提到...

public class singe{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}

B10033003 提到...

public class nine {
public static void main(String[] args) {
int i,j;
for (i=1;i<10;i++)
{
for (j=1;j<10;j++)
{
System.out.println(i+"*"+j+"="+i*j+"");
}
System.out.println();
}
}
}

B10033040陳姵儒 提到...

public class a99{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

b10033037 提到...

public class b10033037{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033011 提到...

public class a99{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033036 提到...

public class hello{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}

B10033011 提到...

public class hello{
public static void main(String[] args)
{
int i,j;
for(i=1;i&lt;10;i++)
{
for(j=1;j&lt;10;j++)
{
System.out.print(i+&quot;*&quot;+j+&quot;=&quot;+i*j+&quot; &quot;);
if(i*j&lt;10)
System.out.print(&quot; &quot;);
}
System.out.println();
}
}
}

B10033048 提到...

public class hello {
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" "); //公式
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B10033057 提到...

public class hello {
public static void main(String[] args) {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++)
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
System.out.println();
}
}
}

B10033001 提到...

public class ch3_6 {
public static void main(String[] args) {
int i, j;
System.out.print(" ");
for (i=1; i<=9; i++)
System.out.print(i+" ");
System.out.println();
i=1;
while (i<=9){
System.out.print(i+" ");
for (j=1; j<=9; j++){
System.out.print(i+"*"+j+"=");
System.out.print(i*j+" ");
if((i*j)<10 && j!=1)
System.out.print(" ");
}
i++;
System.out.println();
}
}
}

B10033043 提到...

public class hello {
public static void main(String[] args) {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++)
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
System.out.println();
}
}
}

B10033044 提到...

public class Hong99{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" "); if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

B9733205彭麒翰 提到...

public class hello {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 9) {
while (j <= 9) {
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
j++;
}
System.out.println();
i++;
j = 1;
}
}
}

B10033022 提到...

vpublic class hello {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 9) {
while (j <= 9) {
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
j++;
}
System.out.println();
i++;
j = 1;
}
}
}

B10033002 提到...

public class jas {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 9) {
while (j <= 9) {
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
j++;
}
System.out.println();
i++;
j = 1;
}
}
}

B10033010 提到...

public class hello{
public static void main(String[] args)
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
System.out.print(i+"*"+j+"="+i*j+" ");
if(i*j<10)
System.out.print(" ");
}
System.out.println();
}
}
}

b10033028 提到...

public class hello {
public static void main(String[] args) {
int i = 1, j = 1;
while (i <= 9) {
while (j <= 9) {
System.out.print(i + "*" + j + "=" + (i * j) + "\t");
j++;
}
System.out.println();
i++;
j = 1;
}
}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章