why cannot run...mention there are fatal errors cannot open file "Debug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tim10
    New Member
    • Nov 2013
    • 1

    why cannot run...mention there are fatal errors cannot open file "Debug

    Code:
    #include <stdio.h>
    
    #include <math.h>
    
    void main()
    
    {
    	float p,r,n,a;
    	double x;
    	int i;
    
    	printf("Please enter your deposit in your account : ");
    	scanf("%f",&p);
    	printf("Please enter your annual interest rate : ");
    	scanf("%f",&r);
    	printf("Please enter your year :");
    	scanf("%f",&n);
    	
    	
    	for (i=1;i<=n;i++)//sum from 1 to the n
    
    	{
    		x= p*(1+ r);
    		a= pow (x,i);
    		printf("Your amount of saving account in %d year is %f \n",i,a);
    
    
    	}
    
    }
    Last edited by Banfa; Nov 25 '13, 09:27 AM.
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    What is the name of missing file? what compiler are you using? what os?

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      This is nothing to do with the source code, so the probable cause is the set-up of your compiler, platform or IDE.

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        The most obvious reason for not being able to open the debug version of your program is that the file is already open->from your previous debug session.

        Be sure all of your debug sessions are closed and then rebuild.

        Comment

        Working...