import java.io.*;
class Ex33
{
public static void main(String[] args)
{
Console console=System.console();
System.out.println("Please enter a number");
String input;
input=console.readLine();
int n1;
n1=Integer.parseInt(input);
double sum;
int LessThanAv;
for(count=0;count<100;count++)
{ sum=(n1+sum)/count;
System.out.println("Please enter the next number");
}
while(n1<sum;)
{
System.out.println(n1);
}
}
}
NewOrder -1 Posting Whiz
NormR1 563 Posting Sage Team Colleague
NewOrder -1 Posting Whiz
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
NewOrder -1 Posting Whiz
NormR1 563 Posting Sage Team Colleague
NewOrder -1 Posting Whiz
NormR1 563 Posting Sage Team Colleague
NewOrder -1 Posting Whiz
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
NewOrder -1 Posting Whiz
stephen84s commented: NO YOU DID NOT -1
NormR1 563 Posting Sage Team Colleague
fresidue 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
stephen84s commented: Exactly +5
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.