#need help about flowcharts
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
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.
thats it
some said it might be wrong cause it has two branches, so i changed into this:
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
i made another flowchart
this would be the sample output:
4 2 8
Max: 8
Min: 2
Detected code, here are some useful tools:
do u think it's correct? @crimson solar
ill repeat 1:1 what i said before
please read it
#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
okay. well, it describes ur code close enough id say
but as explained earlier, there as no rules to this
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
Here's a preview (it's a PDF): https://cdn.standards.iteh.ai/samples/11955/1b7dd254a2a54fd7a89d616dc0570e18/ISO-5807-1985.pdf