This is my second program assignment. So I really have no idea what I am doing. I want this to look simple and I'm sure there is a simpler way to do this. I am going off examples in my book.
#include "stdafx.h"
int main()
{
int die1; /* first die */
int die2; /* second die */
int sum; /* sum of dice */
die1 = 1 + ( rand() % 6 );
die2 = 1 + ( rand() % 6 );
sum = die1 + die2;
return 0;
}