Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
#include <stdio.h>
#include <stdlib.h>

int main()
{
    //sum = a*b*c + (a*b-4)/2;
    double = a,b,c,sum;
    printf("a,b,c enter : ");
    scanf("%lf%lf%lf", &a, &b, &c);
    sum = a*b*c + (a*b-4)/2;
    printf("Sum : %lf", sum);
    return 0;
}


What I have tried:

In this code, it shows error this line -> (double = a,b,c,sum;). pls help me. (I'm starter and I coudn't solve this problem). Thank you so much
Posted
Updated 23-May-22 22:42pm

Lose the = sign. It is only used if a variable is being initialized.

Also - the word is please.
 
Share this answer
 
Comments
CPallini 24-May-22 4:06am    
5.
To add to what Rick has said, you need to get used to locating and fixing syntax errors yourself - you will be doing it many times a day - we all do, even with loads of experience behind us!
Waiting for others to fix it wastes a huge amount of your time and effort.

This may help you next time you get a compilation error: How to Write Code to Solve a Problem, A Beginner's Guide Part 2: Syntax Errors[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900