What's new

Closed Flow chart experts

Status
Not open for further replies.

neth23

Eternal Poster
Joined
May 20, 2013
Posts
1,556
Reaction
545
Points
484
Age
29
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.jpg

pa correct naman po ako kung ano mali ko..salamat
 

Attachments

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?
 
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

Back
Top