#include<stdio.h>
int main()
{   
    int a, b, c, d, e, f, r=0; 
    r=scanf("%d %d %d %d %d %d\n", &a, &b, &c, &d, &e, &f);
    if(r==6)
    {
        printf( "Hello" );
    } 
    else
    {
        printf( "BOOM!!\n" );
        printf("The bomb has blown up");
    }
}
I want the scanf to take only few inputs < 6 and jump to the else part and execute it.
