Last active
October 29, 2018 23:48
-
-
Save bhflm/1f6079eb7de375c53bad8433f423f189 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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