+ 1
Can anyone find the mistakes in the given code of Finding The SIMPLE INTEREST ?
Here is the Link To the Code : https://code.sololearn.com/cj5NLql164Bc/#c /*Simple Interest*/ #include <stdio.h> void main() { float i,p,r,n; printf("\nEnter Principal Amount :"); scanf("%f,&p"); printf("\nEnter Rate of Interest :"); scanf("%f,&r"); printf("\nEnter Term of Loan :"); scanf("%f,&n"); i=(p+r+n)/100; printf("\nPrincipal Amount is : %f",p); printf("\nRate of Interest is : %f",r); printf("\nTerm of Loan is : %f",n); printf("\nThe Interest Will be:%f",i); printf("\n"); } It is Showing "No Output."
1 Odpowiedź
+ 5
Misplaced quotation marks in lines 8, 10, and 12. It should be like scanf("%f", &p);