Nick Tran

Greenhorn
+ Follow
since Feb 12, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nick Tran

Enter Day:
3
Enter the number of days in each month:
29
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29

All the the numbers are lined up good on the right but it won't start at Tuesday (which is the 3rd day) and when i tried hard coding if statements to use the user input amount of days to move a x amount of spaces, the loop still continues to loop which leads the numbers to go beyond Sat

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29
8 years ago


This is the code I have, and when I run it, it works to an extent. I wanted the days to be slid over x amount of spaces depending on what the user would input (Sun = 0, Mon = 1... etc.) but that's where i'm stuck, I've tried myself, but when i do the numbers don't carry over but instead pop out of the grid
8 years ago