Tech indro
Open in Telegram
Science, Technology & Engineering Html Css JavaScript | Coding Science, Technology & Engineering Grow India 💻
Show more640
Subscribers
No data24 hours
-17 days
-1130 days
Posts Archive
640
Congratulation to team India to bring a lot of happiness and honoring the 150 cr peoples of our nation's with proud moment 🫡🇮🇳🫡~ Bleeding blue forever (India)
640
Support this guy for our team and team member sympathy. Just visit on LinkedIn profile and follow back them 🙏🙏🙏
640
Hi guys I am more excited to share my new linkedin account such where I have shared my skills and experience and interest just go on my LinkedIn profile and follow me to embark on your journey with tech indro
640
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
// Function to get the user's choice
char getUserChoice() {
char choice;
cout << "Enter your choice (R for Rock, P for Paper, S for Scissors): ";
cin >> choice;
return toupper(choice); // Convert to uppercase for case-insensitivity
1
// Function to generate the computer's choice
char getComputerChoice() {
// Generate a random number between 0 and 2
int randomNun = rand() % ;
// Map the random number to R. P. or S
switch (randomNum) {
case 0:
return 'R';
case 1:
return "P";
case 2:
return "S":
default:
return; // This should not happen, but added for completeness
}
}
