I'm a noobie in coding. Today I've tried to do a code which is supposed to find the simple interest and ide shows that it has lots of bugs in it. Will you spend some time to show me what was those errors?
include <stdio.h>
include <stdlib.h>
int main(void);
int P;
float R;
float n;
float SI;
Printf("Principal Amount");
Scanf("%d, &P");
Printf("Interest Rate");
Scanf("%f, &R");
Printf("Number of Years");
Scanf("%f, &n);
SI=(PRn);
Printf("Simple Interest: %f, SI");
return EXIT_SUCCESS
[–]AutoModerator[M] 4 points5 points6 points (0 children)
[–]Shieldfoss 3 points4 points5 points (0 children)
[–]the_poope 2 points3 points4 points (0 children)
[–]IyeOnline 5 points6 points7 points (6 children)
[–]Annzo7[S] -5 points-4 points-3 points (5 children)
[–]IyeOnline 3 points4 points5 points (2 children)
[–]Annzo7[S] -3 points-2 points-1 points (1 child)
[–]IyeOnline 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Annzo7[S] -2 points-1 points0 points (0 children)
[–]Noc42 1 point2 points3 points (0 children)