#include #include main() { double sint(double,int,int); double p,si; int r,t; clrscr(); cout<>p; cout<>r; cout<>t; si=sint(p,r,t); cout<<"n calculated simple interst is:"<<si; getch(); } double sint(double x,int y,int z) { double k; k=(x*y*z)/100; return(k); }
#include #include main() { void sint(int,int,int); int p,r,t; clrscr(); cout<>p; cout<>r; cout<>t; sint(p,r,t); } void sint(int x,int y,int z) { int si; si=(x*y*z)/100; cout<<"n Calculate simple interest:"<<si; getch(); }