BCA

C LAB :PART A

PROGRAM 1 PROGRAM 2 PROGRAM 3 PROGRAM 4 PROGRAM 5 PROGRAM 6 PROGRAM 7 PROGRAM 8 PROGRAM 9 PROGRAM 10

C LAB : PART B

PROGRAM 1 PROGRAM 2 PROGRAM 3 PROGRAM 4 PROGRAM 5 PROGRAM 6 PROGRAM 7 PROGRAM 8 PROGRAM 9 PROGRAM 10

3. Write a C Program to demonstrate library functions in math.h (at least 5).

     
#include < stdio.h>
#include < math.h>
#include< conio.h>
void main()
{
    printf("%f\n",sqrt(10.0));
    printf("%f\n",exp(4.0));
    printf("%f\n",log(4.0));
    printf("%f\n",log10(100.0));
    printf("%f\n",pow(4.0,.5));
   
    getch();
}