Look at the following sudoku problem and use for
loop and if - else
to calculate the remaining four blanks.(Hint:
Firstly, check which four numbers left in the nine-square grid in the lower left corner, then calculate the sum
of the first two columns and the last two rows.)
Use the plot
function to draw the solution of the maze and use the scatter
function to mark the
starting and the ending points of the solution with different colors. (You do not need to draw the maze.)
"Every 7 must pass" is a small game in mainland China. Many people take turns to count from 1. When they encounter a number that contains 7 (17, 71) or a number that is divisible by 7 (14, 21), they say "pass". Please write a matlab program that only uses IF-ELSE, FOR loops and numerical operations to solve the numbers that need to be passed within 150.
Assume this is the way Professor David gives you final score