Computer Science, asked by diya333, 1 year ago

Java (for loop) help me!!!!!!​

Attachments:

Answers

Answered by mitajoshi11051976
0
scan code and get answer
Attachments:

diya333: Really
diya333: I dont get any answer
Answered by Anonymous
1

class Pattern

{

public static void main(String args[])

{

for(int i=1;i<=4;i++)

{

int a=5,b=3;

System.out.print(a+" "+b);

int c=0;

for(int j=1;j<=2;j++)

{

c=a-b;

a=b;

b=c;

System.out.print(" "+c);

}

System.out.println();

}

}

}

Attachments:

Anonymous: welcome
Anonymous: brainliest
diya333: I need this only using for loop
diya333: I send an sample code
Anonymous: I have used only for loop
diya333: I dont knw how to explain
diya333: I send u a code pic i need in that for mat
Similar questions