Archive for November 30th, 2007
6.5
1. a) out puts will be 2,3 run for three times which is 23 23 23 b) out puts will be 1,2,3 , 1,2,3 ,1,2,3 run for three times 2. a.Output the numbers 1 to 25 in consecutive order, using five rows of five numbers each.- for(i=1, i<=5, i++)for(j=1, j<=25, j++)System.out.print(k + “”)System.out.println(””)
Add comment November 30, 2007
6.4
1. it should be grater than equal or less than and equal2. if (income > 10000)rate =0.10;else if (income > 20000 && income <= 50000)rate=0.18;else if (income > 50000)rate = 0.40;elserate =0.0;
Add comment November 30, 2007