565 views

1 Answer

0 0 votes
Array[n] \\Array contains integers

Odd_Array[]

for I to n:

    if Array[i]&1==1 then

            Odd_Array.append(Array[i])

for i to n:

     for j to m:

           print(Odd_Array[i]*Odd_Array[j])

           

 
Position:
Show:

Related questions

0 0 votes
0 0 answers
520
520 views
Ebrahim asked Sep 28, 2024
520 views
1. Write steps to perform the following operations on the singly linked list given below:i. Insert 96 at the beginning of the list.ii. Insert 17 at the end of the list.ii...
1 1 vote
1 1 answer
405
405 views
Ebrahim asked Sep 28, 2024
405 views
1. Write steps to perform the following operations on the singly linked list given below:i. Insert 96 at the beginning of the list.ii. Insert 17 at the end of the list.ii...
1 1 vote
1 1 answer
1.6k
1.6k views
ykrishnay asked Aug 5, 2022
1,646 views
as we allocate the space for node in linked list using malloc() so how many bytes malloc allocate for the 1 node i.e. actual value of malloc allocates in ram like i write...
0 0 votes
0 0 answers
1.6k
1.6k views
Lakshman Bhaiya asked Oct 17, 2018
1,604 views
Suppose there are two singly linked lists both of which intersect at some pointand become a single linked list. The head or start pointers of both the lists are known, bu...