the code works on independent ide
Please check code (line 4 segmentattion fault)
where is the code??
paste you code at
click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793