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

class with array in c++ (memory allocatin & using array in classes)

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.

constructor with default arguments