class TestArithmetic {

public static void main (String[] args){

Scanner console= new Scanner (System.in);

** **

** System**.out.println(“Enter first number”);

**int** x1 = console.nextInt();

** System**.out.println(“Enter second number”);

**int** x2 = console.nextInt();

** System**.out.println(“Enter third number”);

**int** x3 = console.nextInt();

System.out.println(“x1=”+x1);

System.out.println(“x2=”+x2);

System.out.println(“x3=”+x3);

** Arithmetic **ar = new Arithmetic();

int answer1=ar.sum(x1,x2);

int answer2=ar.sum(x1,x2,x3);

int answer3=ar.substract(x1,x2);

double answer4=ar.divide(x1,x2);

int answer5=ar.modulas(x2,x3);

int answer6=ar.multiply(x2, x3);

int answer7= ar.largest(x1, x2, x3);

boolean evenNumber1= ar.isEvenNumber(x2);

boolean evenNumber2= ar.isEvenNumber(x3);

System.out.println(“Sum of x1 and x2 is “+answer1);

System.out.println(“Sum of x1, x2, x3 is “+answer2);

System.out.println(“Subtraction of x1 and x2 is “+answer3);

System.out.println(“Division of x1 and x2 is “+answer4);

System.out.println(“Modulas division of x2 and x3 is “+answer5);

System.out.println(“Multiplication of x2 and x3 is “+answer6);

System.out.println(“Largest value among x1, x2 and x3 is “+answer7);

if (evenNumber1)

System.out.println(“x2 is an even number”);

else

System.out.println(“x2 is an odd number”);

if (evenNumber2)

System.out.println(“x3 is an even number”);

else

System.out.println(“x3 is an odd number”);

}

}

]]>And how to show time in 12 hours am or pm when retrieving data from server.

respond as quickly as possible thanks in advance.

]]>1) child node will inherit key-value pair from its parent.

2) child node can override key-value pair at parent by creating a replica. You have to print the flattened key-values pairs at given node say m. 1 <= m <= n Given a key value pair , print all nodes that satisfies this condition.

Example Input: n = 5 , m= C

A [ (name : abc), (id:5), (place:Tirupati) ]

/ B [ (id : 24), ( name : efg) ]

/ \ [(name : xyz) ] C D [(place : Bangalore)]

/ E

Output: [(name: xyz), (id:24), (place : Tirupati)]

]]>```
Account_No D_CD
A1 123
A1 246
A1 XYZ
A1 100
A1 234
A2 123
A2 XYZ
A3 XYZ
A3 246
A3 100
```

I would like a query that can transform the above data to the below format.

```
D-CD1 D_CD2 CPD
123 246
123 XYZ
123 100
123 234
XYZ 123
XYZ 246
XYZ 100
```

FInally I want to perform count operation on each D_CD combination, the count computation should compute count of common account numbers in each D_CD combination. Any help on this topic will be greatly appreciated.

]]>there are two textbox when user enters any number i.e 4*5 there should display of 4 rows and 5 column and chose any one shell of the table as a starting point show the path to the same point as ending point.the question is show the traverse path and condition is the path should be used for one time only….

note: Dont use jquery ajax only use simple html5,css and javascript without regular expression and validation.

]]>I have been creating webpages using python cgi. I tried to refresh the webpage using meta refresh. It’s getting refresh, but** the problem is html form and hidden values are not submitting on refresh. So please tell me how to refresh that will sent form hidden data automatically?**

<?php

for ($i=1; $i<51; $i++) {

echo”<br>”;

echo”The number is “. $i;

echo”<br>”;

}

for ($i=1; $i<51; $i++) {

echo”<br>”;

$num = ($i%5);

if($num==0){

echo ” multiple of 5 is= “.$i;

}

}

for ($i=1; $i<51; $i++) {

echo”<br>”;

$num = ($i%3);

if($num==0){

echo ” multiple of 3 is= “.$i;

}

}

echo ” multiple of 5 is= “.$i. ” multiple of 3 is= “.$i;;

?>