What can be added to my program ??? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What can be added to my program ???

Hii ! I am Pritam Santra and is learning c++ . I wrote this code . What can be added to this ? How could I square root numbers in c++ ? https://code.sololearn.com/ceL7F0OzBRAv/?ref=app

20th Sep 2021, 12:36 PM
Pritam Santra
Pritam Santra - avatar
6 Respostas
0
U can calculate square root by sqrt method
20th Sep 2021, 12:40 PM
Atul [Inactive]
0
Atul [Inactive] But I want it to do other calculations at the same time . Such as addition .
20th Sep 2021, 12:42 PM
Pritam Santra
Pritam Santra - avatar
0
Yes make another case for sqrt
20th Sep 2021, 12:59 PM
Atul [Inactive]
0
Pritam Santra you can create a function to find sqrt of any number, then call this function as many times as you want.
20th Sep 2021, 2:29 PM
Rupali Haldiya
Rupali Haldiya - avatar
0
But can't it be done with any operator as plus minus etc ?
20th Sep 2021, 4:19 PM
Pritam Santra
Pritam Santra - avatar