Skip to content

Commit

Permalink
Print D instead of duplicate I
Browse files Browse the repository at this point in the history
  • Loading branch information
saarthdeshpande committed May 17, 2024
1 parent 2843d23 commit bb56189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorial/cpp/1-Flat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ int main() {
printf("\n");
}

printf("I (5 last results)=\n");
printf("D (5 last results)=\n");
for (int i = nq - 5; i < nq; i++) {
for (int j = 0; j < k; j++)
printf("%5zd ", I[i * k + j]);
printf("%5f ", D[i * k + j]);
printf("\n");
}

Expand Down

0 comments on commit bb56189

Please sign in to comment.