FACTORIAL PROBLEM

SPOJ.com - Problem FIBEZ PROBLEM
Online Compiler and IDE - GeeksforGeeks SOLUTION
GETTING WA PLEASE HELP

why you are using i*res(i). u have to calculate fibonacci no here

refer here for the working code