Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (void)
- {
- int contatore;
- int numero;
- int minimo,massimo;
- printf("quanti numeri vuoi inserire?");
- scanf("%d", &contatore);
- if( contatore <= 0 ){
- printf("non hai inserito nessun numero");
- }
- else{
- for(numero=1; numero<=contatore ; numero++){
- printf("inserisci iL numero da confrontare");
- scanf("%d", &numero);
- numero=minimo;
- massimo=1;
- if(minimo <= massimo){
- minimo=minimo;
- }
- else{
- massimo=minimo;
- }
- numero=numero+1;
- }
- }
- printf(" il numero minimo e' %d ", minimo );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment