Skip to content

Instantly share code, notes, and snippets.

@danilodorgam
Created April 2, 2015 11:37
Show Gist options
  • Save danilodorgam/dbc24b8d5b0f47e3c67c to your computer and use it in GitHub Desktop.
Save danilodorgam/dbc24b8d5b0f47e3c67c to your computer and use it in GitHub Desktop.
if(nota[1] != undefined){
if(repet == 1){
soma=nota[1]*qtd;
}else{
for(i=1; i<= qtd; i++){
soma += nota[i];
}
}
media = soma/qtd;
frmMedia.txtMedia1.value = "Sua Nota Media R$"+media;
if (media <= 1448){
frmMedia.txtMedia.value =aprovado ;
}else{
frmMedia.txtMedia.value = negado;
}
}else{
frmMedia.txtMedia1.value = naoini;
frmMedia.txtMedia.value = "Para que o Calculo seja Efetuado, coloque pelo menos uma nota";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment