#need help about flowcharts

1 messages · Page 1 of 1 (latest)

drifting gulch
#

i tried to make a flowchart of a program that accepts three integers and displays the smallest and biggest number. i believed my flowchart is correct, but perhaps i missed something?

subtle plumeBOT
#

<@&987246399047479336> please have a look, thanks.

subtle plumeBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

lucid berry
#

thats it

drifting gulch
crimson solar
#

hard to say whether it's right or wrong, since u didn't share ur code

#

can't tell whether it represents ur code correctly

#

flowchart wise it's correct now

#

but its not really like there would be "rules" for it

#

flowcharts are just tools to illustrate something

drifting gulch
#

this would be the sample output:

4 2 8
Max: 8
Min: 2
subtle plumeBOT
drifting gulch
#

do u think it's correct? @crimson solar

crimson solar
#

please read it

drifting gulch
# crimson solar ill repeat 1:1 what i said before
#include <stdio.h>

int main()
{
    int a, b, c, max, min;
    scanf("%d %d %d", &a, &b, &c);
    
    if(a > b)
    {
        if(a > c)
            max = a;
        else
            max = c;
    }
    else
    {
        if(b > c)
            max = b;
        else
            max = c;
    }
    
    if(a < b)
    {
        if(a < c)
            min = a;
        else
            min = c;
    }
    else
    {
        if(b < c)
            min = b;
        else
            min = c;
    }
    
    printf("Max: %d\n", max);
    printf("Min: %d\n", min);
}

this is C language btw

crimson solar
#

okay. well, it describes ur code close enough id say

#

but as explained earlier, there as no rules to this

humble fern
#

If you're curious about standards, there's ISO 5807. It's about 40+ years old, but still applies if you're interested

#

Problem is, you'll have to actually purchase a copy to view the standard