Program 2

Write a program to calculate simple interest (i = (prn)/100 )i = Simple interestp = Principal amountr = Rate of interestn = Number of years #include<stdio.h>void main(){int p=1000;int n=7;float r=8.5;float i; i=(p*r*n)/100; printf(“simple intrest=%f”,i); } Output simple intrest=595.000000

Design a site like this with WordPress.com
Get started