HomeworkAssignment2 - cin>> first c...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // Homework #2 CSE 1020.301 Kasey Scott [email protected] #include <iostream> int main () { int first, last, counter i cout << "Homework Assignment 2\t CSE 1020.301" << endl << "Kasey Scott \t [email protected]" << endl // promt user to input the high and low values of the range. cout << "Please enter the first number of the range:"
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin >> first c cout << "Please enter the last number of the range:" cin >> last // This for loop will increment the value for first by 1 for (counter = first counter <= last counter++) { // The if statement makes the program print the desired output. if (counter % 7 == 3) cout << counter << endl } return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online