Created
March 26, 2023 15:03
-
-
Save AakashCode12/f158895b29147f9d6ab8a4641061fdde to your computer and use it in GitHub Desktop.
This file contains 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
//SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.7; | |
contract HealthCare { | |
uint public sum_ratings = 0; | |
uint public count_ratings = 0; | |
function addRating(uint _rating) external { | |
sum_ratings = sum_ratings+_rating; | |
count_ratings+=1; | |
} | |
// function getaverageRating() external{ | |
// return sum_ratings/count_ratings; | |
// } | |
// function changeCity(string memory _word) external { | |
// myCity = _word; | |
// } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment