اكتب برنامج C يأخذ المبدأ ومعدل الفائدة والوقت ويحسب الفائدة البسيطة
- برمجة
- برمجة سي c
- 2021-05-02
- Wassim
الأجوبة
/*Write a C program that accepts principle, rate of interest, time and compute the simple interest*/
#include<stdio.h>
int main()
{
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;
}
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال