/*****************************************************************/ // File : siptr.c // Purpose : To compute the Simple Interest // Author : Nanda Kishor K N // Mail Id : knnkishor@yahoo.com, nandakishorkn@rediffmail.com // Website : www.c4swimmers.esmartguy.com ( WEB MASTER ) // Group : c4swimmers@yahoogroups.com ( GROUP OWNER ) /*****************************************************************/ /* W.A.P. to find the Simple Interest */ #include /* Name : main() Purpose : This is the main function that computes the Simple Interest. This does not call any other function. Parameter : None */ int main() { // Variable Declarations & Initialization // Naming conventions are used like all float variables should begin with 'f' // and all integer variables should begin with 'i' int iTime; float fPamt,fRate,fSi; printf("enter values for p,t,r:\n"); scanf("%f,%d,%f",&fPamt,&iTime,&fRate); // Display the result fSi = (fPamt * iTime * fRate) / 100.0f; printf("Simple Interest = %f",fSi); return 0; } // End of Program