what loops does what? inner loops runs how many times before the outer loop runs again?
Code:
#include <stdio.h>
int main(void)
{
int a,b, something;
for ( a = 0; a<4; a++)
{
for (b = 0; b < 1; b++)
{
printf("enter something\n");
scanf("%d", &something);
}
printf("something = %d\n", something);
}
return 0;
}
Code:
#include <stdio.h>
int main(void)
{
char a1, a2, a3, a4;
printf("enter 4 somethings\n");
scanf("%c %c %c %c", &a1,&a2,&a3,&a4);
printf("something = %c %c %c %c\n",a1,a2,a3,a4);
return 0;
}