Help me in solving LOOOP8 problem

My issue

while submitting the solution status is coming that “time limit exceeded” so what to do next.

My code

#include <stdio.h>

int main() {
  int n;
  scanf("%d", &n);
  for(int i = 0; i <= 12; i=i+1) {
    while(i == n) {
   printf("%d \n", i);
  return 0;

Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone

Hey @ruchita234 ,

Take a look at the 7th line from top, here you have used “while” but it should be “if”.

Do this and you issue will be resolved.