iterazione_c's People
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
quadrato
aggiorna il gitignore
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
makefile
manca, come stai compilando?
sumvett
ti piace scrivere a caso nella memoria eh?
elimina commenti
non c'è
gitignore
deve essere aggiornato
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.