Skip to content

Instantly share code, notes, and snippets.

@AakashCode12
Created March 26, 2023 15:03
Show Gist options
  • Save AakashCode12/f158895b29147f9d6ab8a4641061fdde to your computer and use it in GitHub Desktop.
Save AakashCode12/f158895b29147f9d6ab8a4641061fdde to your computer and use it in GitHub Desktop.
//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