Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~732 People Reached
Favorite Forums
Favorite Tags
Member Avatar for Kalle21

[CODE]import java.util.Scanner; class wloop { public static void main(String[] args) { int counter=2; int sum=0; while( counter<=200 ) { sum = sum+counter ; counter = counter+2; } System.out.println("The sum of integers from 2 to 200 is: " +sum); } }[/CODE] [CODE]import java.util.Scanner; class wloop { public static void main(String[] args) …

Member Avatar for stultuske
0
113
Member Avatar for Kalle21

hello i trying to learn how to type in for exampel 5 and its going to type out 5 4 3 2 1 0 [CODE]import java.util.Scanner; class indexerad_variable { public static void main( String args[] ) { int i= 0; while (i<= 100){ System.out.println("your number: "); System.out.println((100-i)); i++; } } …

Member Avatar for stultuske
0
100
Member Avatar for Kalle21

[CODE]Option Explicit On Option Strict On Public Class workschedule Public Sub Start() Dim choice As Integer = -1 While (choice <> 0) WriteMenuText() choice = Convert.ToInt32(Console.ReadLine) Select Case choice Case 0 Case 1 Week() Exit Select Case 2 Nights() End Select End While End Sub Public Sub WriteMenuText() Console.WriteLine("-------------------------------------------------------") Console.WriteLine(" …

Member Avatar for thines01
0
140
Member Avatar for Kalle21

[CODE]Public Class CurrencyConverter Private summation As Decimal Private sum As Decimal Private curryncy As String Private exchange As Decimal Private final As Decimal Public Sub Start() WriteProgramInfo() ReadValuesAndSumNumbers() WriteResult() End Sub Private Sub WriteProgramInfo() Console.WriteLine(vbLf & "++++++ Finnish input type 0 ++++++") End Sub Private Sub ReadValuesAndSumNumbers() Dim done As …

Member Avatar for Kalle21
0
163
Member Avatar for Kalle21

[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class WasteSchedul { public void start() { int choice = -1; while (choice != 0) { WriteMenuText(); choice = int.Parse(Console.ReadLine()); switch (choice) { case 1: { Bin1(); break; } case 2: { Bin2(); break; } } } } public …

Member Avatar for ddanbe
0
97
Member Avatar for Kalle21

[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class While { private double sum; public void Star() { WriteProgramInfo(); ReadInPutAndSumNumbers(); ShowResults(); } private void ReadInPutAndSumNumbers() { double num = 0.0; bool done = false; while (!done) { { } } } private void WriteProgramInfo() { Console.WriteLine("\n\n ++++++ …

Member Avatar for mani-hellboy
0
119