Or is php same as prolog?

|
ecargsid_eht 2022-01-22 11:10:51
find_max_avg([6,7,1,6,7,9,6])
ecargsid_eht 2022-01-22 11:10:54
BIGMAC_1 2022-01-22 11:10:22
How what u mean

Like this

BIGMAC_1 2022-01-22 11:11:41
ecargsid_eht 2022-01-22 11:07:54
function find_max_avg($array){
$M = 0;
$sum = 0;
$count = 0;
foreach ($array as $arr) {
$count += 1;
$sum += $arr;
if($arr > $M){
$M = $arr;
}
}
$A = $sum/$count;

echo “Max = $M <br> Avg = $A”;
}

Can you put it here

BIGMAC_1 2022-01-22 11:11:46
Like together
ecargsid_eht 2022-01-22 11:11:48
Wait
BIGMAC_1 2022-01-22 11:11:50
So I can run it
ecargsid_eht 2022-01-22 11:12:40
<?php
function find_max_avg(){
$array = array(6,7,1,6,7,9,6);
$M = 0;
$sum = 0;
$count = 0;
foreach ($array as $arr) {
$count += 1;
$sum += $arr;
if($arr > $M){
$M = $arr;
}
}
$A = $sum/$count;

echo “Max = $M <br> Avg = $A”;
}

find_max_avg([6,7,1,6,7,9,6]);

?>

ecargsid_eht 2022-01-22 11:12:48
BIGMAC_1 2022-01-22 11:11:50
So I can run it

just copy paste the code

BIGMAC_1 2022-01-22 11:14:22
luv_php-43838.jpg

BIGMAC_1 2022-01-22 11:14:25
Error
ecargsid_eht 2022-01-22 11:15:15
BIGMAC_1 2022-01-22 11:14:25
Error

dude its c/c++ compiler

ecargsid_eht 2022-01-22 11:15:29
ecargsid_eht 2022-01-22 11:15:15
dude its c/c++ compiler

the code is in php language

BIGMAC_1 2022-01-22 11:15:46
ecargsid_eht 2022-01-22 11:15:29
the code is in php language

I need prolog

BIGMAC_1 2022-01-22 11:15:50
Not php
BIGMAC_1 2022-01-22 11:15:59
Or is php same as prolog?
ecargsid_eht 2022-01-22 11:20:42
BIGMAC_1 2022-01-22 11:15:59
Or is php same as prolog?

i don’t think so.. unfortunately, i don’t know anything about it.. i thought u wanted the logic for that problem so i solved. sorry for that

Shraddha Chhabra 2022-01-22 17:27:06
https://www.linkedin.com/posts/shraddha-chhabra-440369116_urgenthiring-itadministrator-activity-6888878566289760256-Kf-7

#urgenthiring

#itadministrator

experience 1 -3 yr

location -vadodara – Shraddha Chhabra on LinkedInLinkedin
#urgenthiring

#itadministrator

experience 1 -3 yr

location -vadodara

interested candidates can share resume on shraddha@intlg.com…

Osppro 2022-01-22 20:02:55
Contact me for php Ajax AngularJS HTML CSS bootstrap JavaScript Ajax, bootstrap w3css, json xml API development projects but at a fee… Inbox
Pauldushiroy 2022-01-22 20:48:40
Hi all
Pauldushiroy 2022-01-22 20:48:59
luv_php-43857.jpg

Pauldushiroy 2022-01-22 20:49:10
What error is this anyone please help me
Pauldushiroy 2022-01-22 20:49:28
This is the file..
Pauldushiroy 2022-01-22 20:49:39
I am getting error 😞
Pauldushiroy 2022-01-22 20:57:44
Any one
Duabiadmin 2022-01-23 08:40:38
I want to create a crypto Project.
Any best developer contact me please
PriyankJivani 2022-01-23 08:46:14
how to write code video compressor????
PriyankJivani 2022-01-23 08:47:34
video compressor using php
PriyankJivani 2022-01-23 08:48:55
also need pdf compressor
Ardp Tech 2022-01-23 13:17:12
Hello Everyone,

I am Looking freelancer PHP Developers
Must have experience on Codegnator and also Laravel

If any one interested in working on regular projects…Direct Message me

nishupat 2022-01-23 16:08:51
Hi
How to insert text as in input box or in editor with any particular hindi font as ….pls help
thesaurabhmhase 2022-01-23 17:24:38
We are looking for a Full-time PHP Full Stack developer.

Skills: Server handling, Php, Ajax, Json, Php Frameworks.
.
.
Experience : 5-6 yrs

Immediate joining!

Acird Burn 2022-01-23 20:23:38
Any WordPress developer here I have a doubt to ask
amusoftech 2022-01-23 21:47:08
thesaurabhmhase 2022-01-23 17:24:38
We are looking for a Full-time PHP Full Stack developer.

Skills: Server handling, Php, Ajax, Json, Php Frameworks.
.
.
Experience : 5-6 yrs

Immediate joining!

Looking for freelance project
Having 5yrs of experience in php

thesaurabhmhase 2022-01-23 21:49:25
amusoftech 2022-01-23 21:47:08
Looking for freelance project
Having 5yrs of experience in php

We are looking for full time candidate

2022-01-23 22:49:25
Hello, I created the php project on local and that works good.
But after deploying online server, the username is unmattched.
Who has experience with that?
|