calculate of simple interest

 //calculate of simple interest

#include<stdio.h>

int main( )

{  

int p,n;

float r,si;

printf("Enter value of p,n,r=");

scanf(%d%d%f",&p,&n,&r);

si=(p*n*r)/100;

printf("%f\n",si);

return 0;

}

 output--

 Enter value of p,n,r=1200                                        

                                    n=3

                                     r=12.5

                                    450.00000           

 


 

Ramesh basic salary is input through the keyword .His dearness allowance is 40% of the basic salary and house rent allowance is 20% of basic salary write a program to calculate his gross salary.

 
https://allcodescience.blogspot.com/2021/12/ramesh-basic-salary-is-input-through.html

 

Discrete Mathematical Structure. Set Theory Functions Relations Propositional Logic Predicate Logic Group Theory

https://allcodescience.blogspot.com/2021/12/discrete-mathematical-structure.html

 



Comments

Popular posts from this blog

If lengths of three sides of a tringle are input through the keyboard write a program to find the area of tringle.

the length and breadth of a rectangle and radius of a circle are input through the keyboard. write a program to calculate the area and perimeter of the rectangle, and the area and circumference of the circle

paper of size A0 has dimensions 1189 mmx 841 mm .Each subsequent size A(n) is defined as A(n-1) cut in half parallel to its shorter sides .Thus paper of size A1 would have dimensions 841 mm X 594 mm .Write a program to calculate the print paper sizes A0,A1,A2,.........A8.