khoob study

Monday, November 7, 2022

Write a program for simple intrest in c language

     Write a program for simple intrest in c language 

Program:-

#include<stdio.h>

#include<conio.h>


main()


{

int pa,rate,time,SI;

clrscr();

printf("enter the principle amount");

scanf("%i",&pa);

printf("enter the rate of interest");

scanf("%i",&rate);

printf("enter the time ");

scanf("%i",&time);

printf("simple intrest is %i",(pa*rate*time)/100);

getch();

}


Read More:https://khoobstudy.blogspot.com/2022/12/nested-statement-in-java.html

No comments:

Post a Comment