Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

emonyi / IAX0583

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • IAX0583
  • lab1
  • task1.c
Find file
BlameHistoryPermalink
  • emonyi's avatar
    Upload New File · f9300a29
    emonyi committed 6 years ago
    f9300a29
task1.c 429 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

#include <stdio.h>

int main () {
		char name[100]; // this is an array of 100 characters
		
		int code; // this is an integer
		
		printf("Please enter the name and code\n");
		
		scanf("%s", name);
		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 dont think you have got a code");
		}
	
	
	return 0;
}