Комментарии:
hi , There is Wrong Answer in output of Average marks program
see below :
Correct Average will come out this :
RohanDas Average Marks := 63.333333333333
Harry Avergae Marks = 83.5
Correct code for Average Marks is : -
function avgMarks($marksArr){
$sum = 0;
foreach($marksArr as $value){
$sum += $value;
}
return $sum/count($marksArr);
}
function check(){
echo "Easy to learn PHP fuction. <br> ";
}
check();
sir value of "i" should be 0-zero;
ОтветитьI am thinking how code with Harry get the output by writing return value 😂
Ответитьbhaiya mere me parse error de rha hai jahan maine marks ka array ka variable create kiya hai
Ответитьfunction kam kr kesay raha, ye to bata diya k kya kaam kar raha par ye nae bataya k kesay kam kr raha
Ответитьnot a good Explanation, mjy to kxh smj hi nh aya he bhai detail se bta diya kro jab smja hi rhy ho to itni jaldi kis bat ki he...
ОтветитьThank you so mmuch sir
ОтветитьAverage wrong Aya h $i=0 hona chaiye
Ответитьpresence of mind harris bhai sum not value
Ответитьbilkul sahi se ni btaya fucntions aur bhut kuch chod diya..jaldi jaldi kathm kiya sb
Ответитьharry bhiya choti c glti kr di aapne $i 0
$syn 0
Sir i have a question why we write 0 with $sum and 1 with $i
ОтветитьPlease explain code inside function...
ОтветитьHarry bhai is the best❤❤
Ответитьbhai last 15 video sahi se samajh ayi but ya upper se chali gayi 🙃
ОтветитьavgMarks me $i ki value zero assign hogi...
function avgMarks($marksArr){
$sum = 0;
$i = 1;
foreach ($marksArr as $value) {
$sum += $value;
$i++;
}
return $sum/$i;
}
$i =0;
hoga...
bhaiya average galat hai
Ответитьghanta kuch samajh aya
ОтветитьBhai avgMarks Formula Was Wrong,.. You Result is Showing ---> (Score by Rohan Out of 600 is 54.285714285715 )
But Right Avg is 63.5
I simple add Following Code -----> return ($sum/600)*100;
========================================
instead of $i= 0; return; $i++; $sum/$i;
Harry Ji... Please let me know I am right or wrong.
❤️❤️
Ответитьin your video where you want to calculate average , there should be i = 1, otherwise it will divide sum/ total subject(6) which is 57.95....., , but you write i= 0; due to this formula is sum/(total subject(5)) and answer is 49.9..... plz mention it....
ОтветитьTutorial #16 Done, I was absent for 3 to 4 days 😅 but now present
ОтветитьHow can we use php functions with html buttons.
ОтветитьYou make a mistake in average formula. But It is ok.
ОтветитьYour result is wrong bro! The avarage number of rohan das is 63.33. If you give the value of i = 0 ; then its come true result. But i understand the system how to creat a function. Thank you
ОтветитьThanks a lot Bhaiya
ОтветитьReturn "sum" not "value"
ОтветитьHarry sir ek Baar function ko ek Baar phir explain kardo plz
ОтветитьThis PHP Course is Very Helpful!!! 😄😄😁😁
ОтветитьRohanDas be like...!
Permanent hun sir. ..😅
Sir php function ka use q krte hai ...example btaye sir koi hme lesson plan mai likhna h motivation
ОтветитьYe example samjh nahi aaYa 😟
ОтветитьThis video is helpfull
Ответитьthis lecture was a bit confusing. harry bhai aapne is video ko explain or step by step nahi bataya hai. esa lag raha tha ki aap kisi ek colleague ko baju me bitha kar use samja rahe ho
ОтветитьThankyou sir
ОтветитьLast video m foreach loop m condition check kese hogi aapne toh key variants hta diya
Variable as key => yh condition
Done done again
ОтветитьThank you so much Harry bhai for all the playlists you made on your channel. You made it very easy for me to learn programming and coding languages like python, java, java script, c, php, html and css. I've learned a lot from your videos and your projects. But if you don't mind, I would like mention a mistake in this video which I found when I was trying this on my own.
ОтветитьI think persentage sahi ni hai 😂
Ответитьagar mai $i = 1 lie raha ho tu mere number 7 a raha hai aisa hora hai.
Ответитьagar mai $i = 1 lie raha ho tu mere number 7 a raha hai aisa hora hai.
Ответитьagar mai $i = 1 lie raha ho tu mere number 7 a raha hai aisa hora hai.
Ответитьagar mai $i = 1 lie raha ho tu mere number 7 a raha hai aisa hora hai.
Ответить