GithubHelp home page GithubHelp logo

iterazione_c's People

Contributors

teocoluccio avatar

Watchers

 avatar  avatar

iterazione_c's Issues

spazi multipli

hai caricato anche l'eseguibile

metti la tabella degli stati come commento

quadrato vuoto

aggiornare il gitignore

modificare come abbiamo fatto con gli altri

ps. il quadrato deve essere vuoto!

basi

stai imbrogliando, niente vettori

contaparole

la tabella ha degli errori. Il codice va bene. Cerca di aggiustarla tenendo presente che per alcune cose (es conteggio dei caratteri, come hai già considerato) non serve la gestione a stati

occorrenze cifra

se il file si chiama cifra.c e nel gitignore hai scritto occorrenze_cifra che devo pensare? che non stai usando make per la compilazione

address

a che servono i numeri che ti fai dare in input?

massimo

int i=2;  /* come prima, qui e' troppo lontano */

  printf("Inserisci 10 numeri...\n");

  printf("Numero 1: ");
  scanf("%d", &num);
  max=num;

/* meglio qui:
i = 2;
*/
  while (i <= 10) {
    printf("Numero %d: ", i);
    scanf("%d", &num);
    if (num>max) max = num;
    i++;
  }

tabelline

while (riga <= 10) {
  /* non sarebbe meglio mettere qui
  
  colonna = 1;

  così da vedere inizializzazione del contatore e condizione di fine ciclo vicini?
  */
    while (colonna <=10) {
      printf("%5d", riga*colonna);
      colonna++;
    }
    putchar('\n');
    riga++;
    colonna=1;
  }

Leggi il commento

due maggiori

} else if (num>max2) max2 = num; 
      i++;
   }

La mancanza delle graffe all'else-if rende poco leggibile il codice. Sembra che i++ venga eseguita nell'else-if soltanto

sumvett

ti piace scrivere a caso nella memoria eh?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.