graphic.h file can't open

error C1083: Cannot open include file: 'graphics.h': No such file or directory

#include<graphics.h>


Source code i refer to:
http://sourcecodemania.com/graphical-path-finding-system-using-dijkstra-algorithm/?rcommentid=4727&rerror=incorrect-captcha-sol&rchash=d1fb4e16b83d050b81c8620fd9ed7c31


<graphics.h> is a very old, non-standard header. Usually it refers to the Borland BGI header for DOS.
Write a program to prompt the user to key in x and n value to calculate the result for the following formula:
Result = 1 + 2!/(x-2) - 3!/(x-3)+ 4!/(x-4)-.....n!/(x-n)

Note: x value must be greater than n value.

Sample Run 1
Please key in x value : 8
Please key in n value : 5
Result: 1 + 2!/6 + 3!/5 + 4!/4 + 5!/3 =-33.8667

Please help me
Last edited on
Topic archived. No new replies allowed.