c ++ Assignment[1]
c ++ Assignment[1]
i. Add 2 matrices.
matrix.
10. Write a C++ Program to find if the string entered by the user is a
palindrome or not.
8.9 Write a function power to raise a number m to the power n (the function takes
a double value for m and int value for n ) and returns the result correctly.Use a
default value of 2 for n to make the function calculate squares when this argument
is omitted by the user :
a) Write a main() that gets the value of m and n from the user to test this function.
b) Redo this assignment using friend function.
ASSIGNMENT – 3
ASSIGNMENT – 4