whats should i do should i loop this so it will repeat it self over and over again so its just not one line in the actual game
Code:#include <iostream.h>
#include <windows.h>
#include <conio.h>
int main()
{
int number;
cout << "Guess The Number\n";
cin >> number;
if(number==rand()%100)
{
cout << "Correct\n";
getch();
return 0;
}
else
{
cout << "Incorrect\n";
getch();
return 0;
}
return 0;
}