Click here to Skip to main content
15,902,198 members
Home / Discussions / Mobile
   

Mobile

 
SuggestionRe: programming dart Pin
David Crow5-Oct-21 2:38
David Crow5-Oct-21 2:38 
GeneralRe: programming dart Pin
olivier Dakouri5-Oct-21 9:19
olivier Dakouri5-Oct-21 9:19 
QuestionRe: programming dart Pin
David Crow5-Oct-21 9:35
David Crow5-Oct-21 9:35 
AnswerRe: programming dart Pin
olivier Dakouri12-Oct-21 4:17
olivier Dakouri12-Oct-21 4:17 
GeneralRe: programming dart Pin
Richard MacCutchan12-Oct-21 4:50
mveRichard MacCutchan12-Oct-21 4:50 
GeneralRe: programming dart Pin
olivier Dakouri12-Oct-21 11:52
olivier Dakouri12-Oct-21 11:52 
GeneralRe: programming dart Pin
Richard MacCutchan12-Oct-21 21:54
mveRichard MacCutchan12-Oct-21 21:54 
GeneralRe: programming dart Pin
olivier Dakouri14-Oct-21 7:07
olivier Dakouri14-Oct-21 7:07 
Good evening

Write a numberElementsPairs function that returns the number of even elements in a list of integers.

Example

var list = [1, 2, 3, 5, 7, 8]
var result = numberElementsPairs (list)

here is my solution


void main() {
  nombreElementsPairs(List) {
    var list = [1, 2, 3, 5, 7, 8];
    var nombreElementsPairs = 0;
    var a;
    var resultat = 0;
    for (a in (list)) {
      if (a % 2 == 0) {
        resultat = a % 2;
      }
    }
    return resultat;
  }

  print('le nombre pair est $nombreElementsPairs(List)');
}

but it does not pass

GeneralRe: programming dart Pin
David Crow14-Oct-21 7:49
David Crow14-Oct-21 7:49 
GeneralRe: programming dart Pin
Richard MacCutchan14-Oct-21 21:04
mveRichard MacCutchan14-Oct-21 21:04 
GeneralHow to permanently set location for Android 1Weather? Pin
swampwiz18-Jul-21 11:35
swampwiz18-Jul-21 11:35 
QuestionRe: How to permanently set location for Android 1Weather? Pin
David Crow30-Aug-21 2:19
David Crow30-Aug-21 2:19 
QuestionWhy is there a difference between the page style in split view and simulated window (in Xamain)? Pin
Alex Dunlop18-Jun-21 20:03
Alex Dunlop18-Jun-21 20:03 
QuestiondataTable react native Pin
Member 1478297927-Apr-21 22:05
Member 1478297927-Apr-21 22:05 
AnswerRe: dataTable react native Pin
TUF Gaming8-Jun-21 8:58
TUF Gaming8-Jun-21 8:58 
AnswerRe: dataTable react native Pin
Richard Deeming8-Jun-21 21:33
mveRichard Deeming8-Jun-21 21:33 
GeneralRe: dataTable react native Pin
Richard MacCutchan8-Jun-21 21:53
mveRichard MacCutchan8-Jun-21 21:53 
QuestionHow to get data from GSM module to android studio without including the server? Pin
Rocking Kapil21-Mar-21 0:05
Rocking Kapil21-Mar-21 0:05 
AnswerRe: How to get data from GSM module to android studio without including the server? Pin
Richard MacCutchan21-Mar-21 0:33
mveRichard MacCutchan21-Mar-21 0:33 
QuestionHow much does it cost to develop Clubhouse-like application? Pin
Clarence Kennedy17-Mar-21 5:09
Clarence Kennedy17-Mar-21 5:09 
AnswerRe: How much does it cost to develop Clubhouse-like application? Pin
OriginalGriff17-Mar-21 5:12
mveOriginalGriff17-Mar-21 5:12 
QuestionHybrid App Development Pin
KEEPREADING7-Mar-21 19:47
KEEPREADING7-Mar-21 19:47 
QuestionHybrid App Development Pin
KEEPREADING7-Mar-21 19:47
KEEPREADING7-Mar-21 19:47 
Questionmessage removed Pin
Member 150388016-Jan-21 0:02
Member 150388016-Jan-21 0:02 
Rant[REPOST] creation of login page in android studio.Android Studio 4.1.1 Pin
Richard Deeming6-Jan-21 0:25
mveRichard Deeming6-Jan-21 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.