Consider a program to input two numbers and print them in ascending order given below. Find all

Question:

Consider a program to input two numbers and print them in ascending order given below. Find all du-paths and identify those du-paths that are definition clear. Also find all du-paths, all-uses and all-definitions and generate test cases for these paths.

#include

#include

1. void main()

2. {

3. int a,b,t;

4. clrscr();

5. printf("Enter first number:");

6. scanf("%d",&a);

7. printf("Enter second number:");

8. scanf("%d",&b);

9. if(a

10. t=a;

11. a=b;

12. b=t;

13. }

14. printf("%d %d",a,b);

15. getch();

16. }

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: