#include <stdio.h> int main(){ char name[100]; int code; printf("please input your name"); scanf("%s", name); printf("please input your student code\n"); scanf("%d", &code); if ( ( code > 99999) && (code<1000000)){ printf("hello! and welcome to coding %s, %d", name, code); }else{ printf("nice try buster, but I don't think you've got a code"); } return 0; }