6
An algorithm that reads the name and sex of fifty-six people and states her name and whether she is male or female. In the end report the total of men and women. I need the show to run on Visualg.
I made this code but it’s not working:
// Função :
// Autor :
// Data : 29/09/2015
// Seção de Declarações
var
nome , sexo , feminino, masculino: literal
i : inteiro
inicio
escreva ("Digite seu nome: ", nome)
leia (nome)
escreva ("Digite seu sexo: ", sexo)
leia (sexo)
para i <- 1 ate 56 faca
se (sexo = feminino) entao
escreva ("Seu nome é: ",nome "e seu sexo é: feminino", feminino)
fimse
fimpara
fimalgoritmo
I need that in addition to reading the name and sex of 56 people enter the name and if she is male or female and in the end inform the total of men and women, but I can not make the code work.
Welcome to Sopt. Here we answer questions, we don’t do your college work. Click [Dit] and put your question, about something specific. If you want to understand how the site works recommend to do the [tour] take a look at [help]. Also see How to create a Minimum, Complete and Verifiable example.
– Jéf Bueno
Yeah, Cristina, here you find a giant file of information, just look it up. And to contribute by asking questions and receiving retribution in the form of an accurate answer, you will need to do more when writing the question. It’s just [Edit] and add details of what you tried, what went wrong and what exactly is your programming doubt.
– brasofilo