Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

sqrt function in c

Are you beginner in problem solving?
Let's Solve 200 Beginner level problems with explanation video:
https://cutt.ly/200-Problems-interactive-coding-pdf

#include <stdio.h>
#include <math.h>
void main(){
    int num, result;
    printf("Enter a number: ");
    scanf("%d",&num);
    
    result = sqrt(num);

    printf("Square root of %d = %d",num,result);
}
 
PREVIOUS NEXT
Tagged: #sqrt #function
ADD COMMENT
Topic
Name
3+1 =