- 3
Why i cannot run this code in sololearn app
32 Réponses
+ 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 ^^
+ 1
Nice code chammu samurai works for me well
0
Can u explain more
0
Im begginer i don't know what it means
0
Working for me
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 ^^
0
My q is how did i give input ??
0
What those numbers mean by ?? Wich u mentioned in your previous reply ??
0
fist line is today date (year, month, day), and second line is birth date...
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
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)
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 ?!
0
all needed inputs:
name
brother
friend
0
So i need to enter like
Name
Brother
Friend
Or
I mention
My name
My brother name
And howmany mutual we have
0
yes for friends you need to put a (whole) number as input expect an int
0
Ok
0
Understood
0
Thank u
0
I have an another query if u can help
0
if related ask here, if not post a new question thread...