Commit 0c371a03 by matjul

Upload New File

parent 636bde1a
Showing with 18 additions and 0 deletions
#include <stdio.h>
int main (){
char name[100] ; //this array is an array of 100 characters
int code; //this is an integrer
printf ("please input your name\n") ;
scanf ("%s", name) ;
printf ("please input your 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment