Respuesta :
Program:
Work out a sequence of operations to be performed by (a mechanism, such as a computer) to provide with a program.
The code is attached below
#include <stdlib.h>
#include <stdio.h>
int main() {
const int ROCK = 0;
const int PAPER = 1;
const int SCISSORS = 2;
const int MAX_NAME = 40;
int seed;
scanf("%d", &seed);
srand(seed);
char player1_name[MAX_NAME];
char player2_name[MAX_NAME];
int rounds;
scanf("%s", player1_name);
scanf("%s", player2_name);
while (1) {
scanf("%d", &rounds);
if (rounds > 0) {
break;
}
else {
printf("Rounds must be > 0\n");
}
}
printf("%s vs %s for %d rounds\n", player1_name, player2_name, rounds);
return 0;
}
Learn more about the topic Programming:
https://brainly.com/question/14492046