´/* Scanf mit Schleife */
#include <stdio.h>
int main (void)
{
int zahl,r;
do
{
do
{
printf ("Number: ");
r=scanf("%i",&zahl);
fflush (stdin);
printf("R : %i\n\n",r);
}
while(r==0);
printf("Show Number: %i \n",zahl);
printf("Adress from Number : %i \n\n", &zahl);
}
while(stayhere()); // will do the above at least once
return 0;
}
int stayhere(void)
{
int retval = 0;
// return 1 if staying, 0 if not staying
// This place left for you to write Stay or Leave question
return retval;
}