+ 2

What is the output of this code.

<Math.h> is included Int i=sqrt(40) Cout<<; And please explain how.

28th Mar 2018, 1:14 PM
Muhammad Faran
Muhammad Faran - avatar
4 Answers
+ 8
Answer is nothing because cout<<; prints nothing if you wrote cout<<i; output is: 6 because to output 6.32 you need to use 'double' instead of 'int' Note: In 'int' and 'cout' each letters should be in lowercase !important. If you still didn't understand you can reply what is your confusion.
28th Mar 2018, 1:21 PM
Googel
Googel - avatar
+ 6
its....error
28th Mar 2018, 2:34 PM
STRIKER
+ 5
it would work if u add i there..... cout<<i;
28th Mar 2018, 5:31 PM
STRIKER
+ 2
Thanks
28th Mar 2018, 5:13 PM
Muhammad Faran
Muhammad Faran - avatar