Skip to content

Instantly share code, notes, and snippets.

@bhflm
Last active October 29, 2018 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhflm/1f6079eb7de375c53bad8433f423f189 to your computer and use it in GitHub Desktop.
Save bhflm/1f6079eb7de375c53bad8433f423f189 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.25;
contract Ejemplo1{
uint256 notaFinal;
constructor(){}
function calcularNotaFinal(uint256 notaContenido, uint256 notaGrupal, uint256 notaIndividual) public{
notaFinal = ((notaContenido*70) + (notaGrupal * 20) + (notaIndividual * 10))/100;
}
function obtenerNotaFinal() public view returns(uint256){
return notaFinal;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment