Questions tagged as 'visualg'

1
answer

Invert the size of the letters box - VISUALG

I'm having a problem, programming algorithms in visualG. I need to invert an array with values assigned to it. // opcao 18 funcao menu_18():caractere var inicio escreval (" A ORDEM INVERSA É: ") para contador de 12 ate 0 faca escreva(" ",...
asked by 08.06.2016 / 01:48
1
answer

Error in the Visualg program "syntax incorrect"

This exercise is faculty, I'm trying to do for VisualG but always from that "error syntax", which I did. I tried others in other ways but found it easier to understand. I do not want the answer, I want to find out where I'm going wrong...
asked by 31.10.2018 / 13:18
0
answers

I am trying to show 1 to 10 in visualg, but it is giving error in 1 line where theoretically everything is right

Algoritmo "SUPER CONTADOR" // Var N1,cont : Inteiro Inicio repita escreval ("===================") escreval("| MENU |") escreval ("===================") escreval ("| [1] De 1 até 10 |") escreval ("| [2]...
asked by 05.09.2018 / 22:14
1
answer

Variable never reaches zero using randi

Would you like to show Life: 0 in the VisuAlg console result? I tried to put Ate (life = 0) but it gives infinite loop. If someone can help me, I appreciate it. The version of my VisuAlg is 2.0 algoritmo "RPG" var damage, life:...
asked by 06.06.2018 / 09:51
0
answers

Game of shifts in Visualg

I'm stuck on the conditional repetition part. What should I get in the code? Algoritmo "Classes" Tipo Classes = registro arq_Hp,arq_S1,arq_S2,arq_U : real ana_Hp,ana_S1,ana_S2,ana_U: real fimregistro //final var Skill: car...
asked by 24.05.2018 / 16:44
1
answer

Error in "if so" are accepting everyone in response

algoritmo "tinder" var l, m, i, b, c, s: logico pri, seg, ter: caracter andressa, monica, leticia, eduarda, maria, ana, clarisse, joana: logico inicio escreval ("----------------------------------") escreval ("...
asked by 20.04.2018 / 18:59
1
answer

How do I solve this problem using VisualG

Read a floating-point value with two decimal places. This value represents a monetary value. Next, calculate the fewest possible banknotes and coins in which the value can be decomposed. The grades considered are 100, 50, 20, 10, 5, 2. The possi...
asked by 11.03.2018 / 14:28
1
answer

How to eliminate repeated numbers from a visual vector?

algoritmo "semnome" // Função : // Autor : // Data : 06/02/2018 // Seção de Declarações var veto1 : vetor[0..9] de inteiro veto2 : vetor[0..9] de inteiro j,i : inteiro inicio para i de 0 ate 9 faca leia(veto1[i]) fimpara para i de 0 ate 9 faca...
asked by 08.02.2018 / 19:53
1
answer

Convert letter by number in visualG

Is it possible to create an algorithm in visualg that reads a letter and transforms it by another letter or by a number that was already stored in the algorithm? As simple encryption? The logic would be: A = B B = C C = D If typed A, it...
asked by 29.03.2018 / 22:39
1
answer

What's wrong with my code?

algoritmo "Calculadora" Var num1, num2, r: real operacao: caractere inicio EscrevaL("Digite: ") leia(num1, operacao, num2) caso operacao "+" r <- num1 + num2 caso operacao "-" r <- num1 - num2 caso operacao "*" r <- num1 * num2 ca...
asked by 26.12.2016 / 23:07