Computer Science, asked by betsybbt, 6 months ago

what will be the output M,N=1,0 print(M and N or not(N!=M) and M>=N)​

Answers

Answered by Anonymous
1

Answer:

Given two positive integers m and n, the task is to write a program that checks whether m^n is greater than, less than or equal to n^m.

Examples :

Input: m = 3, n = 10

Output: m^n > n^m

Explanation : 3^10=59049 which is greater than 10^3=1000

Input: m = 987654321, n = 123456987

Output: m^n < n^m

A naive approach is to compute m^n and n^m, which causes overflow when m and n are very large..

Similar questions