1. Write a class program in Java with the following specifications:
Class name : Hcflcm
Data members/instance variables : int ab
Member functions:
hcflcm (int x, int y): constructor to initialize a=x and b=y.
void calculate(): to find and print hcf and lcm of both the numbers
Answers
Answered by
0
Answer:
100% correct answer
Hope it's helpful ✌️✌️
Attachments:
Similar questions