HomeworkAssignment1 - do counter The if statement makes the program print the desired output if(counter 7 == 3 cout<< counter<< endl while

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

View Full Document Right Arrow Icon
Sheet1 Page 1 // Homework #1 #include <iostream> int main () { int counter cout << "Homework Assignment 1\t CSE 1020.301" << endl << "Kasey Scott \t [email protected]" << endl counter = 1 // This do loop will increment 1
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: do { counter++ // The if statement makes the program print the desired output. if (counter % 7 == 3) cout << counter << endl } // while statement ends the loop after 100 while (counter <= 100) return 0 }...
View Full Document

This note was uploaded on 03/05/2010 for the course DSDDDDDDD dddddfvvc taught by Professor Cxcseef during the Spring '10 term at École Normale Supérieure.

Ask a homework question - tutors are online