y = fix(x);
The solution which I presented just now works perfectly fine on the live editor of Matlab, but don't know why math works still say it is incorrect?
use fix instead of floor or ceil command
Project Euler: Problem 3, Largest prime factor
398 Solvers
Create a Multiplication table matrix...
285 Solvers
340 Solvers
383 Solvers
322 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!