Question 2). public static void main(string args[]){. f

Added on - 21 Sep 2019

  • 5

    Pages

  • 676

    Words

  • 100

    Views

  • 0

    Downloads

Trusted by +2 million users,
1000+ happy students everyday
Showing pages 1 to 2 of 5 pages
Question 2)1.public static void main(string args[]){2.float x,y; int a,b;3.read(x);4.read(y);5.if((x == 0) ||(y>0))6.y = y/x;7.else x = y+2;8.system.out.println(x);9.system.out.println(y);10.call addition(a,b);11.}12.Public void addition(int a, int b){13.System.out.println(a+b);14.}1.Set of test cases for thecondition coverageTest Case 1: x = 0 y = 2s // trueTest Case 2: x = 5 y = -2 // false2.Set of test cases for thepath coverageTest Case: a = 10 b = 20
desklib-logo
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document