Miscellany
public cpp v1 · immutable#include <cstdlib>#include <iostream>using namespace std;/* why are you looking at this, GO AWAY! */int main(){int number;srand((unsigned)time(0)); int dice = (rand() % 10) + 1; std::cout<< "how many dice are you rolling?"; std::cin>> number ; if (number == 1) std::cout<< dice << std::endl; if (number == 2){ // when you have more than one line under an if statement, you need brackets std::cout<< dice << std::endl; std::cout<< dice << std::endl;}system("pause"); return 0;}