SirDanteDont Posted September 30, 2020 at 10:56 PM Report Share #619465 Posted September 30, 2020 at 10:56 PM Boa noite a todos, Sou novato. Já vi algumas formas de reduzir a quantidade de "if's". Qual a melhor? Obrigado desde já. Cumprimentos Link to comment Share on other sites More sharing options...
M6 Posted October 1, 2020 at 05:51 PM Report Share #619472 Posted October 1, 2020 at 05:51 PM Podes usar o switch. 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar." Link to comment Share on other sites More sharing options...
SirDanteDont Posted October 2, 2020 at 11:35 AM Author Report Share #619476 Posted October 2, 2020 at 11:35 AM Muito obrigado. Cumprimentos Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now