Working with Data Types is very important in programming world. Here, we will learn to manipulate the basic data types in Java. You will be given four different variables of different data types: a (int), b (float), c (double), l (long), d (byte). Your task is to do step-wise operations as given below:
1. Divide c by b.
2. Divide b by a.
3. Divide c by a.
4. Add result at step 3 with l.
5. Divide a by d.
First line of input conatins number of testcases T. For each testcase, there will be one line of input: a, b, c, l, and d.
For each testcase, print the required output as directed in steps in a single line.
Your task is to complete the provided function dataTypes() following the above given steps.
1 <= T <= 10
1 <= a, b, c <= 106
1 <= d <= 127
1 <= l <= 1018
1 2 3 5 127
1.5 2.0 3.0 8.0 0
Testcase 1: a=1, b=2, c=3, l=5, d=127
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.