How?? Why?? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

How?? Why??

this code have wrong answer in challenge.. correct answer is 24. in challenge correct answer is 6. so sad.. i have loss my xp.. static float Func(float a,float b) { return a%b; } static int Func(int a, int b) { return a*b; } static void Main(string[] args) { Console.WriteLine(Func(Func(2,3),4)); } } }

25th Apr 2017, 12:13 PM
Mayur Chaudhari
Mayur Chaudhari - avatar
5 Antworten
- 1
but we are not got that loss xp because of wrong answer
25th Apr 2017, 12:31 PM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 37
ya there are a few wrong answers in challenges do report them once they challenge is over, they'll be rectified
25th Apr 2017, 12:29 PM
Ruthresh kumar R
Ruthresh kumar R - avatar
+ 2
I had a very similar challenge before, are you sure that the code you wrote here is correct? This is the code from the challenge I got (look at return types) http://imgur.com/a/TwajS
25th Apr 2017, 9:45 PM
Valdemar
Valdemar - avatar
0
yes
25th Apr 2017, 12:30 PM
Mayur Chaudhari
Mayur Chaudhari - avatar
- 1
yes code is correct
26th Apr 2017, 8:58 AM
Mayur Chaudhari
Mayur Chaudhari - avatar