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

Here is what you need to know.

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.