answersLogoWhite

0


Best Answer

void reflexive(int a[], int sizeOfA, int b[], int sizeOfB) { bool hold = true; for(i = 0; i < sizeOfA && hold; ++i ) { for( int j = 0; j < sizeOfB && hold; ++j ) { int elemA = a[i]; int elemB = b[i]; if(a[i] == b[i]) { hold = true; break; } } if(hold == false) { cout << "Reflexive - No" << endl; break; } } if(hold == true) cout << "Reflexive - Yes" << endl; }

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Tasmiya Kausar

Lvl 2
4mo ago

[object Object]

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A c program to find an entered relation is equivalence relation or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you Write A program in c language for checking a diagonal matrix?

Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.


Write a shell program to find given no is even or odd?

The pseudo code would be as follows (you figure out the syntax) 1) Prompt the user to enter a number 2) If entered number is alpha, quit program after displaying message that the user ended the program. 3) Otherwise, find Modulo 2 of the entered number. This is a fancy way of saying "find the remainder when the number is divided by 2) 4) If Modulo 2 is zero, the number is even, otherwise odd 5) Display message showing if the entered number was Even or Odd 6) Branch back to step 1


What is the Equivalence of talents to dollars?

nobody knows trying to find out the same thing.


What is a person's ideology?

To find out the relation in between words in a sentence.To find the relation between word and the world.To find out the relation between spoken and written.To find out the relation between thought and its thinker,seer and seen,word and its image and so on.


What is the purpose of a titration?

The purpose of a titration is to find the equivalence point (stoichiometric point) of a solution. At the equivalence point, the moles of the titrant and analyte are equal to one another. At the midpoint of the solution, the pKa value is equal to the pH value.


How does the equivalence point of a titration differ from its end point?

The equivalence point is the point where the number of moles of base equal the number of moles of acid. The end point is the point where the indicator being used changes color (also 'indication point)'. If the indicator is chosen correctly, the end point will essentially be exactly as near as possible at the equivalence point. The point of the titration is to find the equivalence point -- the end point is just a very close approximation to it. This is because the pH of the solution changes very rapidly close to the equivalence point. Therefore, the indicator will change color very close to the equivalence point because of the steepness of the pH change.


How do you determine ka from a titration curve?

Assuming you know how to find the equivalence point on the titration curve, and assuming it is not [strong acid/strong base] or [weak acid/weak base], all you need to do is find the half equivalence point, which gives you the pKa of the first solution. Then to get the Ka, you go 10-pKa .


How do you find candidate key in a relation?

have sex


How do you find a domain and range of a relation given by a set of order pairs?

Describe how to find the domain and range of a relation given by a set of ordered pairs.


How do you find the moles recquired?

In order to find the number of MOLES, you must find the relation to said MOLES. Always remember to balance the equation to determine the coefficients. That would be in order to find the relation between them.


In a titration when does the indicator change color?

when the equivalence point of a titration is achieved.. Added: (More precisely:) The equivalence point is the point where the number of moles of base equal the number of moles of acid. The end point is the point where the indicator being used changes color (also 'indication point)'. If the indicator is chosen correctly, the end point will essentially be exactly as near as possible at the equivalence point. The point of the titration is to find the equivalence point -- the end point is just a very close approximation to it. This is because the pH of the solution changes very rapidly close to the equivalence point. Therefore, the indicator will change color very close to the equivalence point because of the steepness of the pH change


How do you find out which Rehab a Friend entered?

Ask the friend.