Jump to content



Recommended Posts

peste oti exoume auto to code pou ipologizei meso oro:

import java.util.Scanner;

class mxc{
public static void main(String args[])
	Scanner keyboard = new Scanner(System.in);
   double total = 0;
   double grade;
   double average;
   int counter = 0;
   int arcana;
   System.out.print("Apo posa objects thes na bgaleis to meso oro: ");
   arcana = keyboard.nextInt();
   if (arcana==1){
	   System.out.println("Prepei na ine parapanw apo 1!!!!!!!!!, Ksana trekste to programma");
   System.out.println("Parakalo isagete tous arithmous: ");
	   grade = keyboard.nextDouble();
	   total = total +grade;
   average = total/arcana;
   System.out.println("Average: "+average);


Doulevo se eclipse. px omos auto to programma 8elw na to kanw .exe kai na emfanizete otan to trexoun oi aloi ki egw se console . me piasate ti enow pisteuo.mporeis kapios na mou diksei analitika ti tha kanw gia na to kanw ? plz gyes ine anagi

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock