#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
i = 1;
start:
printf ("%d",i);
i++;
if (i<=5)
goto start;
//// while (i<=5)
//// {
//// printf ("%d",i);
//// i++;
//// }
return 0;
}
#include <stdlib.h>
int main()
{
int i;
i = 1;
start:
printf ("%d",i);
i++;
if (i<=5)
goto start;
//// while (i<=5)
//// {
//// printf ("%d",i);
//// i++;
//// }
return 0;
}
output:
12345
No comments:
Post a Comment