How do you output numbers in squared form or radical form? c++ (tell me how to and data types used to do so) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do you output numbers in squared form or radical form? c++ (tell me how to and data types used to do so)

A code will be nice (@Hatsy Rei send me the Numbers code after you are done please)

8th Aug 2017, 3:23 PM
HJ🐓TDM
5 Answers
+ 5
What do you mean, in that form? Just like "5^2"?
8th Aug 2017, 3:54 PM
J.G.
J.G. - avatar
+ 5
Do you mean only square root? or any (like 5th root, et cetera)?
8th Aug 2017, 4:38 PM
J.G.
J.G. - avatar
+ 5
Well, to show what you mean to a user, you can use words: "sqrt(5)" or you can use the actual symbol using ascii or unicode values.
8th Aug 2017, 6:30 PM
J.G.
J.G. - avatar
+ 2
Then what about radicals?
8th Aug 2017, 3:57 PM
HJ🐓TDM
+ 2
usually ill only use square root and cube root
8th Aug 2017, 5:23 PM
HJ🐓TDM