c programming in this exercise you 39 ll practice finding and fixing c syntax errors 5187575
C++ PROGRAMMING
In this exercise, you'll practice finding and fixing C++ syntax errors as well as some logic errors. You will also learn to generate random integers using the rand() function.
Using this Template.
// This program plays a guessing game where you try to guess the number
// the computer has picked.
#include
#include
int main()
{
int seed;
cout
cin >> seed;
srand(seed);
int numberToGuess = rand() % 100;
cout
int guess;
cin >> guess;
while (numberToGuess != guess)
{
if (guess
{
cout
else if (guess
{
cout
}
cin >> guess;
}
cout
return 0;
}