Thursday, February 25, 2021

Re: Urgent help

Hello everyone 
 So The possible Solution 
Could be 

for python:

arr = <Be your array>

for i in arr:
    if i % 10 == 3:
          print(i)


for java 

int[] arr = new int[10]; // Suppose you have 10 element in your array if you want dynamic array use ArrayList 

for(int i : arr){
   if(i % 10 == 3){
      System.out.println(i);

This Solution will Only work for the positive element.


Thank You



On Thu, Feb 25, 2021 at 9:44 PM Kasper Laudrup <laudrup@stacktrace.dk> wrote:
On 25/02/2021 16.59, Nagaraju Singothu wrote:
> Write a program to find the number ends with digit 3 in a array,
>
> For example for a array input [6,83,12,54,71,44,293,43,66,13,72,42,163],
> the output should be 83, 293, 43, 13, 163 - all numbers ends with digit 3.
>

It's probably just my lack of imagination, but I have a very hard time
seeing how such an algorithm could end up as a calendar widget, but
please do enlighten us.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/04e4e878-7bdf-9aba-31a9-21aa8627f1c1%40stacktrace.dk.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAL8_rkHaZhFvCF_ByJUEFEcgp-6EiLANRDSP0dcR_TjLUGDyBg%40mail.gmail.com.

No comments:

Post a Comment