I want to a C# console application code... My problem is... i want take input from keybord a ID like 10510023.. and the 1st 2 digit of this code indicate the year of a student like if ID is 10510023 the year is 2010 or if it is 13510023 the year is 2013.. like same... 3rd digit indicate his or her semester, 4th digit for her branch.. and next digit is serial.... please someone help me...
jony_munsi
-1
Newbie Poster
Recommended Answers
Jump to PostWhat do you have so far?
Jump to PostSince you're coding a console app, use console.readline and your input will be a string. from there simply validate that each character is a digit, and a for loop can easily parse the string into the values you want.
All 7 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
tinstaafl
1,176
Posting Maven
rishif2
57
Posting Whiz in Training
jony_munsi
-1
Newbie Poster
tinstaafl
1,176
Posting Maven
rishif2
57
Posting Whiz in Training
tinstaafl
1,176
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.