Question: In C# write a program for factorizing natural numbers and computing GCF & LCM of two natural numbers. Users must be promoted to enter two

In C# write a program for factorizing natural numbers and computing GCF & LCM of two natural numbers. Users must be promoted to enter two numbers. use class List<>to represent factorizations.

Sample Program:

Enter first num: 36

Enter second num: 48

Factor of 36 are: 2 2 3 3

Factor of 48 are: 2 2 2 2 3

common factors of 36 & 48 are: 2 2 3

GCF of 36 and 48 is: 12

LCM of 36 and 48 is: 144

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!