Questions tagged as 'visualg'

2
answers

Visualg - Boolean Result

I mounted this algorithm in Visualg: algoritmo "semnome" var inicio se 3 = "a" entao escreva("igual") senao escreva("diferente") FimSe fimalgoritmo And I did not understand, why is the condition returning true?     
asked by 07.04.2017 / 14:41
2
answers

Algorithm implementation in VisuAlg [closed]

Make a program that receives two numbers and performs one of the operations listed below according to the user's choice. If an invalid option is entered it will show error message and finish running the program. The options are: 1. Average betwe...
asked by 10.09.2017 / 03:58
1
answer

VisualG - 5 larger numbers

I'm getting 5 values and I need to sort from smallest to largest, without using loop or array. I just managed to find out the smallest and largest; How could you find the ones in the middle? Here's what I've done so far: Algoritmo "semnome"...
asked by 25.09.2017 / 22:16
1
answer

Transforming algorithm for visual

I'm starting to study algorithms, and to facilitate I try to take all the algorithms to the visualg. I'm having an example algorithm but I can not transform it to visualg can anyone help? I know that "size (phrase)" I change to Compr (phra...
asked by 10.10.2018 / 22:38
1
answer

Save the ticket values by adding to the existing amount

   Create a flowchart that reads the user's value of a ticket and at the end shows: the total of the collection and how many tickets were sold. The flowchart should only stop when entering zero in the value of the ticket. It needs to store i...
asked by 06.08.2018 / 21:09
1
answer

error "end while without corresponding" visualg

algoritmo "semnome" var n,i,ma,me:inteiro inicio i<-0 me<-0 ma<-0 enquanto (i<21) faca Escreval ("insira um numero inteiro:") leia (n) se n<0 entao me<- me+1 senao se n>...
asked by 06.07.2018 / 15:59
1
answer

What is the error in the program?

Algoritmo "semnome" Var n1, n2,maior,menor, diferenca: real Inicio escreval("diferença do maior pelo menor") escreva ("numero1 = ") leia (n1) escreva ("numero2 = ") leia (n2) se (n1>n2) entao n1 <- maior n2 <- menor senao n1 <- men...
asked by 27.04.2018 / 20:59
1
answer

VisualG - Exercise with procedure

Good afternoon guys, all right? I have an Algorithm I exercise, and I'm stuck in a doubt. The question: - Write a procedure that receives an integer and prints it in the extended form. For example, for 1 the desired output is "One." The...
asked by 11.05.2018 / 17:50
2
answers

What is the extension of VisualG to GitHub?

I have some old code in VisualG and would like to publish in GitHub, does anyone know the extension of VisualG that GitHub recognizes?     
asked by 19.08.2017 / 21:31
2
answers

How do you make the variable appear on the screen before it is modified?

I'm now beginning to study programming and on account of that I'm using VisualG to be easier to pick up on programming logic. It turns out that I'm trying to develop an algorithm that guesses the age of the person. It's pretty simple, but I'm no...
asked by 10.11.2016 / 19:10