URI Online Judge | 2751

# Output 5

By Roberto A. Costa Jr, UNIFEI Brazil

Timelimit: 1

Your teacher would like you to do a program with the following characteristics:

1. Create two integer variables a and b and two real variables of simple precision c and d;
2. Assign the variable a to the value 15 and assign the variable b to the value of a divided by 2;
3. Assign the variable c to the value 15.456 and assign the variable d to the value of c divided by 7;
4. Show in the first line the phrase: "Valores de b:";
5. Show in the following line the same amount of character in the sentence "Valores de b:", only with dash (-);
6. Show in the next line the phrase "1) b =", and the value of the variable b;
7. Show in the next line the phrase "2) b =", and the value of the variable b using 20 space and justified to the right;
8. Show in the next line the phrase "3) b =", and the value of the variable b using 20 space filled with 0;
9. Show in the next line the phrase "4) b =", and the value of the variable b using 20 space and justified to the left;
10. Show in the next line the phrase "5) b =", and the value of the variable b followed by the character '%';
11. Skip a line;
12. Show the following line in the sentence: "Valores de d:";
13. Show in the following line the same amount of character in the sentence "Valores de d:", only with dash (-);
14. Show in the next line the phrase "1) d =", and the value of the variable d;
15. Show in the next line the phrase "2) d =", and the value of variable d only with its integer part;
16. Show in the next line the phrase "3) d =", and the value of variable d with a decimal place;
17. Show in the next line the phrase "4) d =", and the value of variable d with two decimal places;
18. Show in the next line the phrase "5) d =", and the value of variable d with three decimal places;
19. Show on the next line the phrase "6) d =", and the value of variable d with three decimal places and placed in 20 space;
20. Show in the next line the phrase "7) d =", and the value of the variable d with three decimal places and placed in 20 space with 0 in the white space;
21. Repeat procedure 19 with justification on the left;
22. Show in the next line the phrase "9) d =", and the value of variable d with two decimal places followed by the character '%'.

There is not.

## Output

The result of your program should be written according to the output example.

 Input Sample Output Sample Valores de b: ------------- 1) b = 7 2) b = 7 3) b = 00000000000000000007 4) b = 7 5) b = 7% Valores de d: ------------- 1) d = 2.208000 2) d = 2 3) d = 2.2 4) d = 2.21 5) d = 2.208 6) d = 2.208 7) d = 0000000000000002.208 8) d = 2.208 9) d = 2.21%