-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
-
Where can I find your repository? (Paste the url of your repository below)
https://github.com/ytlitng/CSharpExercises -
Which data type would you use to store a phone number?
int ? -
Surprise! Write a for loop to write out all even numbers between 1 and 100 to the console in both JavaScript and C#.
// your javascript code herefor(int i=1; i <= limit; i++){
if( i % 2 == 0){
System.out.print(i + " ");
}
}
// your c# code herefor(counter = 1; counter <= 100; counter++) {
if(counter%2 == 0) {
/* counter is even, print it */
printf("%d ", counter);
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels