What is the purpose of the following code?
a) Count how many times the number 3 appears in a vector.
b) Generate 20 random numbers between 1 and 60...
What is the purpose of the following code? a) Count how many times the number 3 appears in a vector. b) Generate 20 random numbers between 1 and 60 and print them. c) Check if a given phrase is a palindrome. d) Calculate the distance between two positions in a soccer field and determine if it was a goal or not.
Projeto e Desenvolvimento de Algoritmos • Fundação Centro de Ciências e Educação Superior a Distância do Estado do Rio de JaneiroFundação Centro de Ciências e Educação Superior a Distância do Estado do Rio de Janeiro
Compartilhar