// Example12.2 //A file named DATA contains a series of integer numbers. Code a program //to read these numbers and then write all 'odd' numbers to a file to be //called ODD and all 'even' numbers to a file to be called EVEN. warning('off'); //Input numbers in the DATA.txt file printf("Contents of DATA file\n"); f1=mopen('DATA.txt','wt'); for i=1:30 number(i)=scanf("%d"); if(number(i) == -1) break; end mfprintf(f1,'%d\n',number(i)); end mclose(f1); f2=mopen('ODD.txt','wt'); f3=mopen('EVEN.txt','wt'); f1=mopen('DATA.txt','rt'); //Read numbers from DATA file EOF=length(number); i=1; even=0; odd=0; while (i