Hi I got to while fscanf but stuck. Would you please help? I will grade asa life
ID: 3629880 • Letter: H
Question
Hi I got to while fscanf but stuck. Would you please help? I will grade asa life saver.
Thank you in advance!
#include
#include
#include
Explanation / Answer
#include #include #define n = 26 int main() { FILE *fin; fin = fopen("surface.txt" "r"); if ( fin == NULL ) { printf( "error opening input file. "); system("pause"); exit(1); } FILE *fout; fout = fopen("surface.out", "w"); if ( fout == NULL ) { printf( "error opening output file. "); system("pause"); exit(1); } double i, Ra, Rq, num; while(fscanf (fin, "%lf", &num) == 1);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.