Chat with our AI personalities
Or you could just do the same thing in a spreadsheet without having to pay commercial rates for the program to be written for you
#include<stdio.h> #include<conio.h> void main(); { float p,r,t; float ci(float,float,float); clrscr(); printf("\n enter principle\n"); scanf("%f",&p); printf("\n enter rate\n"); scanf("%f",&rate"); printf("\n enter time\n"); scanf("%f",&time"); printf("\n compound interest is%f ",ci(p,r,t)); getch(); } float ci(float a,float b,float c); float(result); result=p(1+r\100)^c-1); return(result); }
External Variables are declared outside all functions, yet are available to all functions that care to use them. Features of external variables : Storage : Memory Default Initial value : zero Scope : Global Life : As long as program's execution does't come to an end
Program means a plan, usually step-by-step. Programme is like a play or sporting event program that has the events that will occur.
execution is the process by which a computer carries out the instructions of a computer program. terminating program is to stop the program from execution.