I need to introduce 5 numbers, then get the average of those. The thing is that the result is always wrong, but i have this cpp compiler on my android phone and there the code works.
On line 10, use 5.0 instead of 5. You need at least one floating point type with division, or you will get integer division - it doesn't matter where the result goes, float or not.
Also, prom needs to be a floating point type - line 8 doesn't make sense.
Also, prefer double over float - the only time to use float is in cases where you need so many that memory is tight, which is rare.