Noob question for transportation exercise c++
the exercise says my oupout should be 24 but I run the program it says that my output should be 38. Please Help me understand my mistake https://code.sololearn.com/c0i0UDVNKVld/?ref=app
A͢J The input isn't 126? do I have to put cin a
Marvin Guedj input 126 was just in example but there are multiple test cases so input might be different for each case.
@ understood thanks
Your code works right, Based on your input your output will be different.
Marvin Guedj You have to take input and store in variable 'a'
Marvin Guedj Yes cin << a;
A͢J can you explain why I need to use user input cin and can't just define the variable and what are the differences
Python — File Handling
Question is write a c program to print prime numbers up to n and print the largest number in array.
Achievements on Sololearn
How to draw in the console?
Question - Java: Pyramid layers