preview

Nt1310 Unit 4 Assignment 2

Satisfactory Essays

/* Thien Vu */ /* Using Code::Blocks 13.12 */ /* Assignment 4 Program 8 */ #pragma warning (disable: 4996) #include #include #include #include #include /* Sentence sequence: article, noun, verb, preposition, article2, noun2 */ int main( void ) { const char *article[5] = {"The", "One", "A", "Some", "Any"}; const char *noun[5] = {"boy", "girl", "dog", "town", "car"}; const char *verb[5] = {"drove", "jumped", "walked", "ran", "skipped"}; const char *preposition[5] = {"to", "from", "over", "under", "on"}; const char *article2[5] = {"the", "one", "a", "some", "any"}; const char *noun2[5] = {"boy", "girl", "dog", "town", "car"}; int i = 0; srand((unsigned)time(NULL)); for( i = 0; i ); // before return to main return

Get Access