출력부분에서..
돋가이
2023.04.01
출력부분에서..출력이 일부만 되고 나머지는 되지 않아요..질문 내용 : #include stdio.h
#include stdlib.h
#include assert.h
#include time.h
int main(int argc, char* argv[]){
int a;
int count = 0;
int countt = 0;
int i;
int n;
srand(time(null));
n=atoi(argv[1]);
for(i=0; in; i++){
a = rand()%2;
if(a ==0){
printf(head\n);
count++;
}
else {
printf(tail\n);
countt++;
}
}
printf ([results] total: %d, head: %d (%2.2f), tail: %d (%2.2f)\n, n, count, (count/n)*100, countt, (countt)/n)*100;
}
굵게 밑줄친 부분이 다 0으로 출력되네요..어떻게 해야 제대로 출력되는지 좀 알려주세요ㅠ