What's new
  • Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Flow chart experts

neth23

Eternal Poster
Established
Joined
May 20, 2013
Messages
1,006
Reaction score
445
Age
24
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
 
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?
 

neth23

Eternal Poster
Established
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 :)
 

neth23

Eternal Poster
Established
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 ..
 

5JraBwYnxCYaSO1Lc4leQ

Addict
Established
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();
        }
    }
}
 

Trending On This Forum

New Topics On This Forum

Top