0
how to convert local time to global time by c program?
want to a simple code where not used <time.h> header file. I want this output from program: input: 10 35 am output: 10 35 input: 10 35 pm output: 22 35
11 Réponses
+ 1
will the input be given by user or automatically collected from machine? if its a user input no problem otherwise u hv to use time.h library. please provide the necessary info then i cn help
+ 1
this input will be given by user.
0
u want a basic c code or c++? i mean #include<stdio.h> that one?
0
I mentioned programming language c.
0
ok i'll b back wd the code
0
hye bro! r u there?
0
see this one try it in basic c compatible compilers
https://code.sololearn.com/c42koeG7zXv8/?ref=app
0
please atleast praise me if it helps! its not c++ or c# its written in basic c language
0
working code c++ input hh_mm_am/pm by space or separate line
https://code.sololearn.com/c2G3s8sBhC39/?ref=app
0
I can't run this c language code. it's showing me "segmentation fault". please bro check it one more.
0
its working 2nd one will run in sololearn itself!