Computer Science, asked by greeshmasri2000, 3 days ago

Read a,b
Function mul(a, b)
t = 0
while (b != 0):
t = t + a
b=b-1
End While
return t
End Function​

Answers

Answered by ashokraj7
6

Answer:

t= a*b.

49056

Explanation:

It creating a multiplication function between a and b.

t will be keep on adding till b becomes zero

so a*b will the answer.

here, a=56 & b=876

so t will be 49056.

Answered by krishna210398
0

Answer:

t= a*b.

49056

It creating a multiplication function between a and b.

t will be keep on adding till b becomes zero

so a*b will the answer.

here, a=56 & b=876

so t will be 49056.

Explanation:

Pseudocode is an informal way of programming description that does not require any strict programming language syntax or underlying era concerns. it's far used for growing an outline or a tough draft of a program.

Pseudocode is an artificial and informal language that allows programmers broaden algorithms. Pseudocode is a “textual content-based totally” detail (algorithmic) layout device.

The rules of Pseudocode are moderately truthful. All statements displaying “dependency” are to be indented. these consist of even as, do, for, if, switch. Examples beneath will illustrate this notion.

The end() function is an inbuilt function in PHP and is used to find the last element of the given array. The end() function changes the internal pointer of an array to point to the last element and returns the value of the last element. Syntax: end($array)

In PHP, a function is declared with the function keyword prefixed with the function name and the calling of a function in a program is done by just calling the name of the function wherever required.

begin

number, a, b, result

input: a , b

end result = ++a + b++ + –c

print a,b,c,end result

Answers :

a) 6 11 14 30

Read n

i=0,s=0

Function Sample(int n)

while(n>0)

r=n%l0

p=8^i

s=s+p*r

i++

n=n/10

End While

Return s;

End Function

Function mul(a, b)

t = 0

while (b != 0):

t = t + a

b=b-1

End While

return t

End Function​

https://brainly.in/question/39919138

https://brainly.in/question/30594432

#SPJ2

Similar questions