- 3
4th Jul 2021, 3:14 AM
chammu samurai
chammu samurai - avatar
32 ответов
+ 3
works fine if you provide all input at once (when the input pop up), each separated with a new line: 2021 07 04 1789 07 14 sololearn execute code on server side: no real time input is possible ^^
4th Jul 2021, 3:20 AM
visph
visph - avatar
+ 1
Nice code chammu samurai works for me well
4th Jul 2021, 11:58 AM
Victor Yegon
Victor Yegon - avatar
0
Can u explain more
4th Jul 2021, 3:26 AM
chammu samurai
chammu samurai - avatar
0
Im begginer i don't know what it means
4th Jul 2021, 3:27 AM
chammu samurai
chammu samurai - avatar
0
Working for me
4th Jul 2021, 3:34 AM
Jad Yahya
Jad Yahya - avatar
0
in real time execution (on your pc), you must provide input when you are asked for... in sololearn, all input are collected at start, to be send with script at server side... so you must provide all inputs at once, blindly ^^
4th Jul 2021, 3:35 AM
visph
visph - avatar
0
My q is how did i give input ??
4th Jul 2021, 3:52 AM
chammu samurai
chammu samurai - avatar
0
What those numbers mean by ?? Wich u mentioned in your previous reply ??
4th Jul 2021, 3:52 AM
chammu samurai
chammu samurai - avatar
0
fist line is today date (year, month, day), and second line is birth date...
4th Jul 2021, 3:53 AM
visph
visph - avatar
0
So if i wrote Char person1 [20]; Printf("my name is?\n"); Scanf("%s\n", person1); What should i give input ?? In pop up
4th Jul 2021, 3:58 AM
chammu samurai
chammu samurai - avatar
0
if that's the only input for your script, only one line with the name ^^ (giving more lines will not prevent code for running, but not enough will result to an error)
4th Jul 2021, 4:04 AM
visph
visph - avatar
0
What i mean is If i write Char person1 [25]; Char person2[35]; Int mutualFriends= 30; Printf("my name is !\n"); Scanf("%s\n", person1); Printf ("my brothe name is!\n"); Scanf("%s\n", person2); Printf("we have friends in mutual!\n"); Scanf("%d\n",& mutualFriends); What i put in put ?!
4th Jul 2021, 4:13 AM
chammu samurai
chammu samurai - avatar
0
all needed inputs: name brother friend
4th Jul 2021, 4:16 AM
visph
visph - avatar
0
So i need to enter like Name Brother Friend Or I mention My name My brother name And howmany mutual we have
4th Jul 2021, 4:18 AM
chammu samurai
chammu samurai - avatar
0
yes for friends you need to put a (whole) number as input expect an int
4th Jul 2021, 4:19 AM
visph
visph - avatar
0
Ok
4th Jul 2021, 4:34 AM
chammu samurai
chammu samurai - avatar
0
Understood
4th Jul 2021, 4:35 AM
chammu samurai
chammu samurai - avatar
0
Thank u
4th Jul 2021, 4:35 AM
chammu samurai
chammu samurai - avatar
0
I have an another query if u can help
4th Jul 2021, 4:35 AM
chammu samurai
chammu samurai - avatar
0
if related ask here, if not post a new question thread...
4th Jul 2021, 4:36 AM
visph
visph - avatar