asked 118k views
3 votes
In a C++ program, one and two are double variables and input values are 10.5 and 30.6. After statement cin >> one >> two; executes________ a) one = 10.5, two = 10.5 b) one = 11, two = 31 c) one = 30.6, two = 30.6 d) one = 10.5, two = 30.6

asked
User Jeenyus
by
7.5k points

1 Answer

3 votes

Answer:

The answer is "Option d"

Step-by-step explanation:

In the given C++ program code, It is defined, that two double type variable "one and two" is defined, that holds the two double value that is "10.5 and 30.6".

In this code, it uses the "cin" method for input values from the user ends, when we execute this code, it provides the console screen, that inputs the double type value from the user side, and other given choices were wrong because it holds different values.

answered
User Nwkeeley
by
8.1k points