HSC Computer Science Practical

HSC CS Part -1 | EXP-5 | RATIO & RECIPROCAL

Write a program in C++ with a ratio class using member functions like assign() function to initialize its member data integer numerator and denominator, convert() function to convert the ratio into double, invert() function to get the inverse of the ratio and print() function to print the ratio and its reciprocal. 12th CS Part-1 Practical

HSC CS Part -1 | EXP-5 | RATIO & RECIPROCAL Read More »

Scroll to Top