i need help translating this code into c language. PROGRAM IMPLICIT NONE INTEGER::divx,i REAL(kind=8)::approx,approx1,delx,x,count delx=0 divx=0 approx=0 count=0 DO count=count+1 divx=divx*2...

i need help translating this code into c language. PROGRAM IMPLICIT NONE INTEGER::divx,i REAL(kind=8)::approx,approx1,delx,x,count delx=0 divx=0 approx=0 count=0 DO count=count+1 divx=divx*2 delx/1./divx x=0 approx1=0 DOi=1,divx delx=1./divx x=x+delx approx1=approx1+delx*sqrt(1-x**2) ENDDO IF (abs(approx1-approx) approx=approx1 END DO WRITE(*,*)'pi=',approx*4 WRITE(*,*)'number of iterations:',count END PROGRA pretty simple program but i dont know how to write in thec-language yet. please help

Dec 06, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here