• + 1 comment

    why we have to use 3 different input here

    scanf("%d", &a); scanf("%lf", &b); scanf("%*[\n] %[^\n]", ch); please help...

    why not scanf("%d %lf %*[\n] %[^\n]", &a,&b,ch); or scanf("%d %lf %s", &a,&b,ch);