google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a program to compute simple interest program in c - 2nd puc computer science

Write a program to compute simple interest program in c

 Write a program to compute simple interest program in c.

#include<stdio.h>

#include<conio.h>

void main()

{

float p,r,si;

int t;

clrscr();

printf("Enter the Principal Time and Rate of Interest\n");

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

si=p*t*r/100.0;

printf("Simple Interest=%f",si);

getch();

}

Output:

Enter the Principal Time and Rate of Interest

100

5

6

Simple Interest=30.000000


Write a program to compute simple interest program in c  Write a program to compute simple interest program in c Reviewed by Vision Academy on December 07, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.