Can anyone write a C++ program for me which convert military time to standard time without using return function. write a simple program which start from

Come on, think. :) This is very easy. How do we convert from 24h notation to 12? When someone says it's 23:00 you know, it is 11:00 pm, or 22:00 is 10:00 pm 21:00 is 9, 20:00 is 8.

Look at the difference between 23 and 11, 22 and 10 and so on. It's always 12. You only need to subtract 12. It is slightly more elegant to do it with the modulo operator.