/* write a program that reads a sequence of positive integers and finds the sum of the square roots of the input numbers */ #include #include int main(){ int num; double result, sum=0.0; printf("enter a sequence of positive integers\n"); scanf("%d",&num); while(num>0){ result=sqrt(num); printf("sqrt of %d is %f\n",num, result); sum+=result; scanf("%d",&num); } printf("sum of sqrt's is %f\n",sum); return 0; }