If else if statement
Write a C++ program that allows a user to perform average of 5 number when age given is above 12 else allow the user to perform multiplication of 3 number all the input must be enter by the user.
Hi Isaac, I see you try to mention Rishi up there. Just letting you know, it won't work that way. If you want to mention a friend, then type @ in the Description, a list displaying names will pop-up and you can choose from the list. Note that you need to be following the person to be mentioned, and it only works in SoloLearn app (not SoloLearm web). A little intro for tags usecase, https://code.sololearn.com/W3uiji9X28C1/?ref=app
The pseudocode can be written like this if age > 12 accept 5 input average = sum(5 Inputs) / 2 else accept 3 input Call the accumulate algorithm to accepts N inputs, you have to create N variables and use the cin instruction on them N a, b, c... cin >> a >> b >> c;. (3 inputs) You can then work with them
Oh your tried to tag me? :O @Mirielle provided you the pseudo code so you can proceed from there. You've to show your attempt to get help..