Help me in solving THALA7 problem

My issue

include <stdio.h>

int main(void) {
// your code goes here
int N,i;
scanf(“%d”,&N);
for(i = 0;i < N;i++)
if(N = 7){
printf(“THALA\n”);
}
else{
printf(“SADGE\n”);
}

}

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int N,i;
	scanf("%d",&N);
	for(i = 0;i < N;i++)
	if(N = 7){
	    printf("THALA\n");
	}
	else{
	    printf("SADGE\n");
	}

}


Problem Link: Thala For A Reason Practice Coding Problem - CodeChef

Why you are using for loop. Remove it and run your code

it is simply problem

Yes, remove loop and use “==” instead of “=”