I  wrote this code in c in Linux:
#include<stdlib.h>
#include<stdio.h>
#include<math.h>
int main(char *argv[]){
    float k;
    printf("this is consumer\n");
    k=(float)sqrt(atoi(argv[1]));
    printf("%s\n",k);
    return 0;
}
But when I type the inputs in the shell I am getting this error:
Segmentation fault (core dumped)
Can someone help me solve this issue?