Skip to content

On 16th December, the Bangladeshis celebrate Victory Day as they achieved victory in the war of independence of 1971 on this date. As a tribute, I complied a code visualizing the map of Bangladesh.

License

Notifications You must be signed in to change notification settings

Abrar2652/Map-of-Bangladesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Map-of-Bangladesh

I've implemented simple concepts of string and ASCII values in this 'C' code. The alphabetic position of 'A' is 1, 'E' is 5 whereas their ASCII values are 65 and 69 respectively. So how can we relate that? Simply we can subtract 64 from their ASCII values to get the real alphabetic positions. We assign that alphabetic postion in 'int c' variable.

Now if we find '.' character in string, then we'll print a new line. The ASCII value of the '.' is 46 and a new line is 10.

If the position of the character in the string is even, then we'll print a space (ASCII 32) until the value of the variable 'c' decreases to 0.

If the position of the character in the string is odd, then we'll print a '|' until the value of the variable 'c' decreases to 0.

About

On 16th December, the Bangladeshis celebrate Victory Day as they achieved victory in the war of independence of 1971 on this date. As a tribute, I complied a code visualizing the map of Bangladesh.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages