Question: Write and test a Pep/9 translation of the C program on the next page that inputs N (10 sN int X[12000] int P, N, temp,
![N, temp, go on; int ge tbit (int ) { return X[i];](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f975ba39372_63366f975b9e0bc4.jpg)
Write and test a Pep/9 translation of the C program on the next page that inputs N (10 sN int X[12000] int P, N, temp, go on; int ge tbit (int ) { return X[i]; } void setbit (int (X[i]-1; void setmults (int M, int N) int i-M; int findnext (int P, int N) int i-P while (i-12000) { printf ("N ;"); scanf("%d",&N); for (P 2 P-N; P++) X[P]-0 P=0 ; go-on-1; while (go_on) next (P, N); temp = find if (temp !--1) printf ("%d ", temp) ; setmults (temp, N); P-temp+1; { else go_on-0; return 1; Example program runs N: 9 N: 12000 N: 10 2 N 11999 2 lines omitted 11959 11969 11971 11981 11987 Write and test a Pep/9 translation of the C program on the next page that inputs N (10 sN int X[12000] int P, N, temp, go on; int ge tbit (int ) { return X[i]; } void setbit (int (X[i]-1; void setmults (int M, int N) int i-M; int findnext (int P, int N) int i-P while (i-12000) { printf ("N ;"); scanf("%d",&N); for (P 2 P-N; P++) X[P]-0 P=0 ; go-on-1; while (go_on) next (P, N); temp = find if (temp !--1) printf ("%d ", temp) ; setmults (temp, N); P-temp+1; { else go_on-0; return 1; Example program runs N: 9 N: 12000 N: 10 2 N 11999 2 lines omitted 11959 11969 11971 11981 11987
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
