Hey friends!please help me.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Hey friends!please help me....

What is <conio.h>,<math.h> and why I cann't run it on sololearn

16th Aug 2018, 6:56 PM
Albert Whittaker :Shaken To Code
Albert Whittaker :Shaken To Code - avatar
3 Answers
+ 6
conio.h and math.h are the C libraries. conio.h is for getch(), getche(), getchar() and maybe some other functions too. math.h library contains all the functions of maths one of which Ketan Lalcheta showed in his example. And both of these libraries are working on SoloLearn
17th Aug 2018, 12:35 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 2
Albert Whittaker below code works on sololearn c++: #include <iostream> #include <math.h> #include <conio.h> using namespace std; int main() { int a = 25; cout << sqrt(a); return 0; }
16th Aug 2018, 7:11 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
#include<math.h> it uses a library of functions in math.h header file. these all functions are related complex to mathematical operations. this library is included when you need to perform tasks like sqareroot, cuberoot and other maths
17th Aug 2018, 9:36 AM
Anaadi Dubey
Anaadi Dubey - avatar