Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- // Function to give money to a player
- void giveMoney(int playerId, int amount) {
- printf("Giving $%d to player %d\n", amount, playerId);
- }
- int main() {
- int playerId;
- int amount;
- printf("Enter the player ID: ");
- scanf("%d", &playerId);
- printf("Enter the amount of money to give: ");
- scanf("%d", &amount);
- giveMoney(playerId, amount);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement