0

How i can do it ?

a=5 b= 10 c= 1 d=4 S=a+b*5-c++*--d/3 cout<<S cout<< a>b <= 0; cout<< a>b <= 0 +10; cout<< (a > b <= 0) +20; cout<< a<=b<=c &&d;

24th Feb 2023, 6:24 AM
Nghĩa Parry
Nghĩa Parry - avatar
1 Answer
+ 3
Nghĩa Parry welcome to Sololearn! The code is missing basic program structure, such as standard header file inclusion, a main() entry point, etc. It is missing variable declarations and semi-colon statement terminators. To learn correct C++ syntax, there are good examples for beginners in the Sololearn C++ tutorial that starts at this link: https://www.sololearn.com/Course/CPlusPlus/?ref=app
24th Feb 2023, 6:55 AM
Brian
Brian - avatar