moneyc - printf("Please input pricipal...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 //money.c #include<stdio.h> #define N 30 int main() { float total, p, r, k printf("Please input rate of interest in decimal form\n")
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: printf(&quot;Please input pricipal invested\n&quot;) scanf(&quot;%fl&quot;, &amp;p) k=1+r total=(p*(pow(k,N))) printf(&quot;%f\n&quot;, total) return 0 }...
View Full Document

Ask a homework question - tutors are online