Header Ads

Programming C's question

Programming C's solve

1.Write a program is C language to calculate the simple interest for principal amount P rate R for N year.

Ans:- /* programming to find out simple interest */
          # include <std io .h>
          # include <con io .h>
          void main   ( )
           {
          float p,r,n,s,i;
          clrscr ( );
          print f ("enter principal amount rate and year \n");
          scan f (%f%f%f,&p,&r,&n");
         si = p* r* n/100;
         print f ("simple interest =%f\n",si);
         getch ( );
                   } 

          
            

No comments

Powered by Blogger.