{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

LEC04_EX02 - cout<<name[k k cout<<endl for(int...

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

View Full Document Right Arrow Icon
#include <iostream> using namespace std; u int main() { char name[] = "Steve Smith"; int numbers[7] = {1,2,3,4,5,6,7}' int k=0; while (name[k] != '\0'){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout<<name[k]; k++; } cout<<endl; for (int q=0;q<8;q++){ cout<<numbers[q]<<"\t"; } cout<<endl; c return 0; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online