the program is for my friend, and she gets the errorCode:#include <stdio.h> int main () { double a; double b; double s1; double s2; double hyp; printf ("please give the value of side a\n"); scanf ("%lf", &a); printf ("please give the value of side b\n"); scanf ("%lf", &b); 1a = (b* b) - (a* a); 2a = (2* a)* (b); hyp = (a* a) + (b* b); printf ("side 1 equals "); printf ("%lf\n", s1); printf ("side 2 equals "); printf ("%lf\n", s2); printf ("hypotenuse equals "); printf ("%lf\n", hyp); return 0; }
invalid suffix "a" on integer constant
what is the problem?