loading...

Coding Solution: C program to calculate simple interest

 Program Input:

#include <stdio.h>

int maim()

{

int p,r,t,int_amt;

printf("Input principle, Rate of interest & time to find simple interest:\n");

scanf("%d%d%d",&p,&r,&t);

int_amt=(p*r*t)/100;

printf("Simple interest = %d,int_amt");

return 0;

}


Below, I have represented the inputs that I have used in an online c program compiler:




Program Output:

Input principle = 1000
Input Rate of interest = 10(%)
Input time = 2(Year)

Below, I have represented the Outputs that I have obtained from  the online c program compiler:



Output is showing
Simple interest as 200

Related Posts:

  • Fact of the Sun The sun is the main source of our most familiar and almost all the energy of this world. Every organism is directly or indirectly dependent on solar energy. The source of this sun's energy is the reaction of the nucleus… Read More
  • Sound proofing Creating a sound-proof dome To get a totally sound-proof space whatever the requirements may be.....I'd suggest a rather bizarre solution to that, may you like it someday. Let's make a dome with sound proofing mat… Read More
  • Brain Tumor Tumor is caused by abnormalities and excessive cell division. There are two types of tumors, namely benign tumor and malignant tumor. Although there is no possibility of cancer from benign tumors, but malignant tumor ca… Read More
  • Range of Light The flow of photon particles is called light. Light is one type of electromagnetic wave. The light can not travel far enough because the light is scattered through various obstacles in the atmosphere of the Earth. … Read More
  • Building Super Conductor Building Super Conductor  By far inventions and discoveries made less progress regarding superconductivity none the less efforts to do so brought subtle break-throughs. Starting with manufacture of economic super… Read More

0 comments: