When I run this program it shows erron in line 4.
20 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lavish Goel
el 6 de Mzo. de 2022
n = input("ENTER A NUMBER "); flag = 0 ; for i=1:n if (modulo(n,i)==0) then flag = flag+1 ; end end if (flag==2)then disp("this is a prime number "); else disp("this is not prime ."); end
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Discrete Math en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!