Skip to content

Conversation

@GenDelta
Copy link
Contributor

@GenDelta GenDelta commented Oct 9, 2023

I have added a java program which does the following:

  • It takes the order of two matrices as input.
  • Then it checks if multiplicatipn between the two is possible or not.
  • If it is possible, the flow of code is continued but if it is not possible then the program terminates.
  • Then, three for loops are used to calculate the product of the two matrices and the results are stored in a third matrix.
  • The resultant matrix is then printed.

Feel free to go through the code and then merge the pull request if you are satisfied with this contribution.

@GenDelta
Copy link
Contributor Author

GenDelta commented Oct 9, 2023

I have added another java program which does the following tasks:

  • Takes a lower bound as input.
  • Take an upper bound as input.
  • Iterates from the lower bound to the upper bound.
  • Checks if current value of control variable i is a prime number or not by calling function isPrime()
  • If isPrime() returns true, the value of i gets printed.
  • If isPrime() returns false, nothing is printed and the loop moves to the next iteration.
  • The loop stops once the terminating condition is reached.
  • The program terminates.

Go through the above commits and if you feel satisfied with my contributions, kindly merge them to the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant