+ 2
Hey friends!please help me....
What is <conio.h>,<math.h> and why I cann't run it on sololearn
3 Respuestas
+ 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
+ 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;
}
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