1. a cow is defined as a guessed digit which is correct in value but not in position eg a secret number is 1234 and users guess is 2890 the result will be one.creat a value returning function called calcCows which accepts array parameters representing the user's and the secret number.
2.using one dimensional arrays write a function which will output pascal's triangle upto parameter specified number of lines
chrispen 0 Newbie Poster
arkoenig 340 Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.