#include <stdio.h>
int main()
{
int a,i,b,c,d,e;
array[5]["b","c","d","e"]; // defining input characters as int
for(i=1;i<=a;i++)
{
for(j=0;j<=a;j++)
{
printf("Input number %d ",i);
scanf("%d",&array[j]); // every loop it goes diffrent valuable
}
}
printf("Your numbers %d"b,c,d,e,);
return 0;
}
귀하의 의견에 약간의 변경이있었습니다. 숫자를 각각 다른 변수에 지정하고 싶습니다. 나는이 생각scanf를 이렇게 실행할 수 있습니까?
프로그램에 정의되지 않은 동작이 있습니다. – Mahesh
배열을 사용할 수있는 이유는 무엇입니까? –
이것은 변수가 작동하는 방식이 아닙니다. * 배열 *을 찾으십시오. –