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 kaseyscott@my.unt.edu #include <iostream> int main () { int first, last, counter i cout << "Homework Assignment 2\t CSE 1020.301" << endl << "Kasey Scott \t kaseyscott@my.unt.edu" << 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 &gt;&gt; first c cout &lt;&lt; &quot;Please enter the last number of the range:&quot; cin &gt;&gt; last // This for loop will increment the value for first by 1 for (counter = first counter &lt;= last counter++) { // The if statement makes the program print the desired output. if (counter % 7 == 3) cout &lt;&lt; counter &lt;&lt; endl } return 0 }...
View Full Document

Ask a homework question - tutors are online