Question: 4. #include #include int main (void) { } Draw the flow chart for the following piece of code. int A1, B1, A2, B2, A3,
4. #include #include int main (void) { } Draw the flow chart for the following piece of code. int A1, B1, A2, B2, A3, B3, countp = 0, countn = 0;; float L1, L2, L3; char r; do { scanf("%d %d %d %d %d %d", &A1, &B1, &A2, &B2, &A3, &B3); L1 = sqrt (pow (A1 A2,2)+(B1 B2, 2)); B3,2)); L2 = sqrt (pow (A2 L3 = sqrt (pow (A3 A3,2)+(B2 A1,2) + (B3 B1,2)); if ((L1 L2 >= L3) && (L2 + L3 >= L1) && (L3 + L1 L2)) countp= countp + 1; countn + 1; else countn scanf("%c", &r); } while (r = 'Y' || = 'y'); printf("%d %d", countp, countn); return 0;
Step by Step Solution
There are 3 Steps involved in it
Start dectare As B1 A2 B2 A3 B3 assign countpED courtin D declare ... View full answer
Get step-by-step solutions from verified subject matter experts
