Hello programmers!
I am new to c programming and just started a course 3 weeks ago, and now we need to make a project where it will be asking you a few things and then do the progress...
But I am having a few problems, could anybody help me please?
This part above is when I encounter my problem...Code:void PellerK(double *Produkt, double *Kvot){ printf("Produkt eller Kvot?\n"); /*Asking to multiply or divide*/ scanf("%lf %lf",&Produkt,&Kvot); if (PellerK == Produkt); { printf("Produkten blir = %d\n"); } else (PellerK == Kvot); { printf("Kvoten blir = %d\n"); }
When I try to run this I get an error where it says;
'Else without a previous if' - What am I doing wrong? Please help me out
If you see that I am doing anything else which is wrong, please feel free to help me out with that aswell!



LinkBack URL
About LinkBacks




