Write a C program for Implementation of formula : c = √ a
Program:-
#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <math.h>
void main()
{
int a, P;
clrscr();
printf("Enter the value of a ");
scanf("%d",&a);
P= sqrt(a);
printf("%d",P);
getch();
}
Output:-
input:-
Enter the value of a, b
a=10
b=2
Enter the value of a, b
a=10
b=2
output:-
20
24
20
24
0 comments:
Post a Comment