+ 1

How people can put number to my code?

https://code.sololearn.com/c9LjO9j5tuty/?ref=app

7th Jul 2019, 11:30 AM
Rani Puspitasari
Rani Puspitasari - avatar
4 odpowiedzi
+ 1
If you want to use C, choose C when you create it in the playground, not C++. Using scanf in C++ doesn't work for some reason in here. Or, you can change your scanf function to cin in C++. Also don't forget to write the return value of your main function.
7th Jul 2019, 12:00 PM
Agent_I
Agent_I - avatar
+ 1
Rani Puspitasari Write it down like this x = 1.0/2*alas*tinggi Also put int before main
7th Jul 2019, 12:23 PM
Agent_I
Agent_I - avatar
0
Okay, i do. I change it to C, but its still not work. I can put a number but the result not show
7th Jul 2019, 12:09 PM
Rani Puspitasari
Rani Puspitasari - avatar
0
Agent_I i got it. Thanks,
7th Jul 2019, 12:34 PM
Rani Puspitasari
Rani Puspitasari - avatar