Problem
1. Write a program segment that sets a Boolean variable Danger to True and stops reading in data if Pressure (a Float variable being read in) exceeds 510.0.
2. Write a program segment that counts the number of times the integer 28 occurs in a file of 100 integers.
3. Write a nested loop code segment that produces this output
1
1 2
1 2 3
1 2 3 4