u) Print integer 100 in decimal, octal and hexadecimal separated by tabs, using a stream manipulator to change the base.

What will be an ideal response?


```
cout << 100 << '\t' << setbase(8) << 100 << '\t' << setbase(16) << 100;
```

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. Library functions are built into a programming language and can be called whenever they are needed. 2. The input column in an IPO chart describes the process that the function performs on input data. 3. Many programming languages let you assign an integer value to a real variable without causing an error. 4. Random numbers are useful in simulation programs where the computer must randomly decide how an object will behave.

Computer Science & Information Technology

The area bound by the axes in a chart

a. Plot area b. Chart area c. Axes group

Computer Science & Information Technology

Comments can be added to both the Microsoft Visual Basic (VBA) code and to the presentation itself

Indicate whether the statement is true or false

Computer Science & Information Technology

A scenario is a set of values that Excel can save and automatically substitute in cells

Indicate whether the statement is true or false.

Computer Science & Information Technology