find simple interest & compund interest
Answers were Sorted based on User's Feedback
Answer / chakkra
#include<stdio.h>
#include<conio.h>
main()
{
float p,n,r,samt=0,camt=0;
printf("enter the principle, no. of years & rate of
interest");
scanf("%f %f %f",&p, &n, &r);
if(p>0&& n>0&& r>0)
{
samt=(p*n*r)/100;
camt=p(1+r/100)^n;
printf("simple interest amount:%f",samt);
printf("compound interest amount:%f",camt);
}
}
Is This Answer Correct ? | 8 Yes | 6 No |
Answer / praveen kumar singh
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float p,n,r,si,ci;
printf("enter the value of p,n,r");
scanf("%f%f%f",&p,&n,&r);
si=p*n*r;
ci=p*(1+r/100)^n;
printf("si and ci is%f%f",si,ci);
getch();
}
Is This Answer Correct ? | 5 Yes | 5 No |
source code for delete data in array for c
write a origram swaoing valu without 3rd variable
Write a program that reads a dynamic array of 40 integers and displays only even integers
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }
Sorting entire link list using selection sort and insertion sort and calculating their time complexity
1 Answers Infosys, Microsoft, NetApp,
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }