[gelöst] Programm wird nicht richtig ausgeführt
Verfasst: Fr Aug 29, 2014 11:29 pm
Code: Alles auswählen
#include<stdio.h>
void sayhallo (int times);
int main(void)
{
//programm gibt hallos Hallos aus
//es werden aber nicht mehr als 5 ausgegeben
int hallos=16;
void sayhallo (int hallos);
return 0;
}
void sayhallo (int times)
{
if(times>5)
times=5;
int i;
for(i=0;i<times;i++)
printf("Hallo\n");
return;
}
compiler sagt varible hallos wird nicht benutzt... hilft mit aber nicht weiter
ich vermute der aufruf ist falsch....
Danke im Voraus
