{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

moneyc - printf"Please input pricipal invested\n"...

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") scanf("%fl", &r)
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("Please input pricipal invested\n") scanf("%fl", &p) k=1+r total=(p*(pow(k,N))) printf("%f\n", total) return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online