0% found this document useful (0 votes)
215 views1 page

Java Data Types Exercises Basic Data Types Exercises - W3resource

The document discusses the benefits of genetic testing and how Genera can provide information about DNA predispositions through their tests.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
215 views1 page

Java Data Types Exercises Basic Data Types Exercises - W3resource

The document discusses the benefits of genetic testing and how Genera can provide information about DNA predispositions through their tests.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Benefícios do Teste Genético

Saiba Sobre Informações Exclusivas das Predisposições do Seu


DNA com Os Testes da Genera

Genera Saiba Mais

w3resource
8. Write a Java program that reads a
number and displays the square, cube, and
fourth power.

Expected Output:
Square: .2f
Cube: .2f
Fourth power: 50625.00

Click me to see the solution

9. Write a Java program that accepts two


integers from the user and prints the sum,
the difference, the product, the average,
the distance (the difference between the
integers), the maximum (the largest of the
two integers), and the minimum (the
smallest of the two integers).

Test Data
Input 1st integer: 25 
Input 2nd integer: 5
Expected Output :
Sum of two integers: 30
Difference of two integers: 20
Product of two integers: 125

You might also like