package cis2168lab1p1;
import java.util.Scanner;
public class CIS2168Lab1P1 {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int sum;
System.out.println("Please enter your numbers:");
int userInput= keyboard.nextInt();
sum=0;
int numberOfTotal=userInput;
while (userInput >=0)
{
sum=sum + userInput;
numberOfTotal++;
userInput= keyboard.nextInt();
if (userInput%2, count<=0, count++)
}
}
}
This is my first time programming and I really do not know that much. I need people to be specific like show me examples...Thanks...

New Topic/Question
Reply



MultiQuote




|