Why it is showing error as expression can not used as function

Hey @kailash_01 you are typing ans=(((a^i)%c)((a^i)%c)*a)%c;
but there is no sign between these 2 brackets
((a^i)%c) and ((a^i)%c)*a)%c;
Please add the appropriate sign according to your logic.

@kailash_01 If you don’t have any further queries please mark the doubt as resolved