Hello everyone, I need to do a barbadinha script in R where I have to read a typed number and give its predecessor (type, if I type 10 the predecessor is 9).
But I have a problem that I do not know how it makes the start ...
print("Digite um numero")
//O QUE VAI AQUI PARA LER O NUMERO DIGITADO
nAntecessor= numero-1
print("O antecessor é:", nAntecessor)
I'm using the R Project program ...