visualg

Error in Visualg program " incorrect syntax"

This exercise is from college, I'm trying to do for VisualG but always from this "error syntax", which I did. I tried other w ... vo_sal <— salario + aumento ESCREVA “O novo salario é: “, novo_sal FIM SENÃO ESCREVA “Cargo Inexistente!” FIM_ALGORITMO

Visualg syntax error (Portugol)

When placing the code in this way and entering this data "faults = 0 proofs = 5, 9, 7.2 work = 10.5 age = 15 result = failed" ... t;- Excelente Fimse Fimse Fimse Fimse Escreval Escreval ("Este foi o resultado do aluno",Result) Escreval

Sum of integers from 1 to 100

I'm trying to create an algorithm that adds up the numbers from the range 1-100. Further the program prints each element of t ... 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + A soma dos inteiros de 1 à 100 é: 5151

Visualg-assign to two variables in the same row

I would like to know how I put 1 variable next to the other in visualg? Exemplo: 1.0 7.0 5.0 9.0 Since the 4 numbers ar ... eia(Y2) R <- raizq((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))//FORM CALCULAR DISTANCIA Escreval (R:1:4) fimalgoritmo

Finish repeat loop repeat from Visualg

When we use repita together with ate at the end of the block, should we also use fimrepita? If not, when do we use this? alg ... nota") leia (M) t<-(n+m)\2 escreval ("a media do aluno foi:",t) i<-i+1 ate i=5 fimalgoritmo

Algortimo VisualG: disregard number 0

I am solving the following exercise: Write an algorithm that calculates the average of the numbers entered by the user, ... a (n) se n%2=0 entao np<-np+1 nnp<-nnp+n fimse ate n=0 m<- nnp/np escreval ("a media dos numeros é",m) fimalgoritmo

Matrix generate random number from 0 to 99 without repeat Visualg

I had already asked the question but I reported the wrong question. Anyway, I need to make a program to automatically generat ... 1 faca para j de 0 ate 4 passo 1 faca escreva(cartela[i,j]) fimpara escreval("") fimpara

How to break the line at the VisuAlg prompt?

My output: Name: so-so of Tality: so many years How to break the line in VisuAlg's prompt? To look like this: Name: so-and-so Age: As Many Years

Is there any way to subtract a negative value to zero in VisuAlg?

I would like it to be displayed always Vida: 0 in the last block, even if the value is negative, without doing this "Gambiarr ... Se Ate(vidaInimigo <= 0) Se (vidaInimigo <= 0) entao EscrevaL("Inimigo abatido!") FimSe fimalgoritmo

Line break in Visualg Run prompt:

I am building an algorithm to calculate an employee's special credit benefit. As you can see, in the image, in the execution ... ine and also I can not increase the size of the screen of the prompt! How do I fix this and show the full line at the prompt?

Gives an error in the " IF " but does not say what error it is! visualg

algoritmo "tinder" var l, m, i, b, c, s: logico pri, seg, ter: logico andressa, monica, leticia, eduarda, maria, ... fimse se (joana == verdadeiro), entao escreva ("Seu par perfeito é Joana") fimse fimalgoritmo

Condition to continue loop while value is invalid

Wanted to know about this Code: Algoritmo "Brincadeira2Ou1 " Var A, C, P: inteiro Inicio A <- 0 C < ... ed. It would not be right to be less than or equal to 1 or greater than or equal to 2 than less than 1 or greater what 2 ?

Variable never reaches zero using randi

Would I show Life: 0 in VisuAlg console result? I tried to put until(life = 0) but it gives infinite loop. If anyone can ... fe <- life - damage Ate(life = 1) Se (life = 1) entao EscrevaL("Inimigo abatido!") FimSe fimalgoritmo

VisuAlg exercise solved: wanted tips on how to improve it

Description We needed to get some data, which we can check below: relate the item; City Code; number of passenger ... entes de trânsito nas cidades ") escreval("com menos de 2000 veículos de passeio é:",mediaacidentes) fimalgoritmo

Why gives error in this type of comparison / choice?

escreval("Digite o consumo") leia(consumo) escolha consumo caso <= 100 escreval("Parabéns, voce e economico ... o consumo") caso >200 escreval("Consumo execessivo") outrocaso escreval("Valor invalido") fimescolha

Error in Visualg in REAL variable

In the algorithm below, visualg reports: expected real type expression. This always happens when I type 1.88 or any number wi ... eia(M) Escreva ("Altura (m): ") Leia(A) IMC <- M / (A ^ 2) Escreval ("IMC: ", IMC) fimalgoritmo

Command while in code in VisualG [closed]

closed . This question needs to be more objective and is not currently accepting answers. ... val ("O lanche escolhido foi ",quantidade," Cheeseburger Completo(s) e custará R$ ", valor,",00") fimescolha Fimalgoritmo

Visualg G Algorithm

Ask for a person's name and gender. Present at the end how many people are male and how many are female. We program termina ... e fimenquanto escreval("Foram digitados", qtdh, " do sexo masculino e", qtdm, " do sexo feminino") fimalgoritmo