🔒 Closed Flow chart experts

Status
Not open for further replies.

neth23

Eternal Poster
mga boss baka alama nio


gumagawa kasi ako ng flow chart
bale nagawa ko na yung una
sa part ng ("x") ok na yung ("o") nalang ako na hihirapan di ko alam kung pano ko i dudugtong
baka merong my alam sa inyo pa help naman po...TIA . salamat..

x x x
x x
x
o
o o
o o o

gayan dapat out put sa flow chart.


qwerty.webp

pa correct naman po ako kung ano mali ko..salamat
 
ts looping ba gamit mo dito or nag instantiate kapa nang value?what i mean is dynamic or static ba yung value nung loop1 mo or L1?
loop siya

pag nag False at dineretsio ko yung second decision block ko sa first decision block
mag pprint siya ng
x x x
x x
x

kaso dinugtong ko yung 3 decision block epic na sakit na ng ulo ko *^*

"0" yung value ng L1
 
ok po kuya ts yung guide ko lang po just reverse the loop :) para bumalik tad yung pag print i hope ithelps :) diba meron ++ just make if -- and make you condition reverse :)
 
ok po kuya ts yung guide ko lang po just reverse the loop :) para bumalik tad yung pag print i hope ithelps :) diba meron ++ just make if -- and make you condition reverse :)
ang pinapagawa kasi is 1 flowchart lang at dapat ganun nga yung out put ..
 
try mo to.
Code:
public class Main{
    public static void main(String[] args){
        for (int i = 3; i > 0; i--){
            for (int x = i; x > 0; x--){
                System.out.print("X");
            }
            System.out.println();
        }
        for (int i = 3; i > 0; i--){
            for (int x = i; x <= 3; x++){
                System.out.print("O");
            }
            System.out.println();
        }
    }
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 11
    Replies
  • 871
    Views
  • 5
    Participants
Last reply from:
5JraBwYnxCYaSO1Lc4leQ

Trending Topics

Online now

Members online
519
Guests online
2,090
Total visitors
2,609

Forum statistics

Threads
2,285,372
Posts
29,029,672
Members
1,219,419
Latest member
yurilindo123
Back
Top