Skip to content

How to check a palindrome number in C# Programming

[fusion_builder_container hundred_percent=”no” hundred_percent_height=”no” hundred_percent_height_scroll=”no” hundred_percent_height_center_content=”yes” equal_height_columns=”no” menu_anchor=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” status=”published” publish_date=”” class=”” id=”” link_color=”” link_hover_color=”” border_size=”” border_color=”” border_style=”solid” margin_top=”” margin_bottom=”” padding_top=”” padding_right=”” padding_bottom=”” padding_left=”” gradient_start_color=”” gradient_end_color=”” gradient_start_position=”0″ gradient_end_position=”100″ gradient_type=”linear” radial_direction=”center center” linear_angle=”180″ background_color=”” background_image=”” background_position=”center center” background_repeat=”no-repeat” fade=”no” background_parallax=”none” enable_mobile=”no” parallax_speed=”0.3″ background_blend_mode=”none” video_mp4=”” video_webm=”” video_ogv=”” video_url=”” video_aspect_ratio=”16:9″ video_loop=”yes” video_mute=”yes” video_preview_image=”” filter_hue=”0″ filter_saturation=”100″ filter_brightness=”100″ filter_contrast=”100″ filter_invert=”0″ filter_sepia=”0″ filter_opacity=”100″ filter_blur=”0″ filter_hue_hover=”0″ filter_saturation_hover=”100″ filter_brightness_hover=”100″ filter_contrast_hover=”100″ filter_invert_hover=”0″ filter_sepia_hover=”0″ filter_opacity_hover=”100″ filter_blur_hover=”0″][fusion_builder_row][fusion_builder_column type=”1_1″ layout=”1_1″ spacing=”” center_content=”no” link=”” target=”_self” min_height=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” hover_type=”none” border_size=”0″ border_color=”” border_style=”solid” border_position=”all” border_radius=”” box_shadow=”no” dimension_box_shadow=”” box_shadow_blur=”0″ box_shadow_spread=”0″ box_shadow_color=”” box_shadow_style=”” padding_top=”” padding_right=”” padding_bottom=”” padding_left=”0px” margin_top=”” margin_bottom=”” background_type=”single” gradient_start_color=”” gradient_end_color=”” gradient_start_position=”0″ gradient_end_position=”100″ gradient_type=”linear” radial_direction=”center center” linear_angle=”180″ background_color=”” background_image=”” background_image_id=”” background_position=”left top” background_repeat=”no-repeat” background_blend_mode=”none” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” filter_type=”regular” filter_hue=”0″ filter_saturation=”100″ filter_brightness=”100″ filter_contrast=”100″ filter_invert=”0″ filter_sepia=”0″ filter_opacity=”100″ filter_blur=”0″ filter_hue_hover=”0″ filter_saturation_hover=”100″ filter_brightness_hover=”100″ filter_contrast_hover=”100″ filter_invert_hover=”0″ filter_sepia_hover=”0″ filter_opacity_hover=”100″ filter_blur_hover=”0″ last=”true” first=”true”][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” content_align=”left” size=”1″ font_size=”” animated_font_size=”” fusion_font_family_title_font=”” fusion_font_subset_title_font=”” fusion_font_variant_title_font=”” line_height=”” letter_spacing=”” margin_top=”” margin_bottom=”” margin_top_mobile=”” margin_bottom_mobile=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=””]What is a Palindrome?[/fusion_title][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” content_align=”left” size=”2″ font_size=”” animated_font_size=”” fusion_font_family_title_font=”” fusion_font_subset_title_font=”” fusion_font_variant_title_font=”” line_height=”” letter_spacing=”” margin_top=”” margin_bottom=”” margin_top_mobile=”” margin_bottom_mobile=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=””]Definition[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=””]

A palindrome is a word, phrase, number, or sequence of words that reads the same backward as forward. It derives from Greek roots that literally mean “running back” (palin is “again, back,” and dromos, “running.”) The word appears to have been created in English based on these roots in the early 1600s.

  • This first known palindrome was in Latin and read “sator arepo tenet opera rotas” which means either:
    • The sower Arepo holds the wheels with effort.
    • The sower Arepo leads with his hand the plough.
  • Palindromes were also found in ancient Greek and in ancient Sanskrit.

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”2″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Types of Palindromes [/fusion_title][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”3″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Name Palindromes[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

  • A name that reads the same backward as forward.
  • Examples:
    • Bob, Anna, Hannah, Eve, Elle,

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” highlight_text=”” after_text=”” content_align=”left” size=”3″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Word and Sentence Palindromes[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

There are also Word and Sentence Palindromes. E.g. the whole sentence can be read backwards and forwards and be the same.

  • Multiple Word Examples:
    • I did, did I?
    • No lemon, no melon
    • My gym
  • Single Word Example :
    • Civic, Kayak, Level, Madam, Mom, Noon, Race car, Radar, Refer, Rotor, Stats,Tenet,Wow

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” highlight_text=”” after_text=”” content_align=”left” size=”3″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Number Palindromes[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

List of Palindrome Numbers in 1 to 10000

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99,

101, 111, 121, 131, 141, 151, 161, 171, 181, 191, 202, 212, 222,

232, 242, 252, 262, 272, 282, 292, 303, 313, 323, 333, 343, 353,

363, 373, 383, 393, 404, 414, 424, 434, 444, 454, 464, 474, 484,

494, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 606, 616,

626, 636, 646, 656, 666, 676, 686, 696, 707, 717, 727, 737, 747,

757, 767, 777, 787, 797, 808, 818, 828, 838, 848, 858, 868, 878,

888, 898, 909, 919, 929, 939, 949, 959, 969, 979, 989, 999, 1001,

1111, 1221, 1331, 1441, 1551, 1661, 1771, 1881, 1991, 2002, 2112,

2222, 2332, 2442, 2552, 2662, 2772, 2882, 2992, 3003, 3113, 3223,

3333, 3443, 3553, 3663, 3773, 3883, 3993, 4004, 4114, 4224, 4334,

4444, 4554, 4664, 4774, 4884, 4994, 5005, 5115, 5225, 5335, 5445,

5555, 5665, 5775, 5885, 5995, 6006, 6116, 6226, 6336, 6446, 6556,

6666, 6776, 6886, 6996, 7007, 7117, 7227, 7337, 7447, 7557, 7667,

7777, 7887, 7997, 8008, 8118, 8228, 8338, 8448, 8558, 8668, 8778,

8888, 8998, 9009, 9119, 9229, 9339, 9449, 9559, 9669, 9779, 9889,

9999

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” highlight_text=”” after_text=”” content_align=”left” size=”3″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]What is the longest palindrome word in English? [/fusion_title][fusion_text columns=”1″ column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

  • The longest palindromic word in the Oxford English Dictionary is the onomatopoeic tattarrattat, coined by James Joyce in Ulysses (1922) for a knock on the door.

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” highlight_text=”” after_text=”” content_align=”left” size=”2″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Use of Palindrome Numbers[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

  • Palindrome Number is very useful in Recreational mathematics topics like Rubik’s Cubes, magic squares, logic puzzles.
  • A palindromic sequence is a nucleic acid sequence on double-stranded DNA or RNA wherein reading 5′ to 3′ forward on one strand matches the sequence reading backward 5′ to 3′ on the complementary strand with which it forms a double helix.

[/fusion_text][fusion_modal_text_link name=”” class=”” id=””]DNA palindrome[/fusion_modal_text_link][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

https://en.wikipedia.org/wiki/Palindromic_sequence#/media/File:DNA_palindrome.svg

by User:Acdx

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”2″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]C# Program to check if a number is a Palindrome number[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

  • Logic: If the original number and its reversed numbers are equal. then it is a Palindrome number.
  • Example :
    • 121 & 121 (palindrome number)
    • 144 & 441 (not palindrome number)

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”4″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Create a new Project[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

  • Create a new project in Visual Studio.
  • Configure your new project with a name, location and solution file name.
  • Remove unused Namespace.

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” highlight_text=”” after_text=”” content_align=”left” size=”4″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]C# Code to check if a number is a Palindrome number [/fusion_title][fusion_syntax_highlighter theme=”” language=”x-php” line_numbers=”” line_wrapping=”” copy_to_clipboard=”” copy_to_clipboard_text=”” font_size=”” border_size=”” border_color=”” border_style=”” background_color=”” line_number_background_color=”” line_number_text_color=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]dXNpbmcgU3lzdGVtOwoKbmFtZXNwYWNlIFBhbGluZHJvbWVFeGFtcGxlcwp7CiAgICBjbGFzcyBQcm9ncmFtCiAgICB7CiAgICAgICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgIHsKICAgICAgICAgICAgaW50IG9yaWdpbmFsTnVtYmVyLCB0ZW1wTnVtYmVyLCByZW1haW5kZXIsIHJldmVyc2VOdW1iZXIgPSAwOwoKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlxuIik7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJFbnRlciBhbiBpbnRlZ2VyIG51bWJlciIpOwogICAgICAgICAgICBvcmlnaW5hbE51bWJlciA9IGludC5QYXJzZShDb25zb2xlLlJlYWRMaW5lKCkpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiXG4iKTsKCiAgICAgICAgICAgIHRlbXBOdW1iZXIgPSBvcmlnaW5hbE51bWJlcjsKCiAgICAgICAgICAgIHdoaWxlIChvcmlnaW5hbE51bWJlciA+IDApCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIHJlbWFpbmRlciA9IG9yaWdpbmFsTnVtYmVyICUgMTA7CiAgICAgICAgICAgICAgICByZXZlcnNlTnVtYmVyID0gcmV2ZXJzZU51bWJlciAqIDEwICsgcmVtYWluZGVyOwogICAgICAgICAgICAgICAgb3JpZ2luYWxOdW1iZXIgLz0gMTA7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCI9PT09PSBGaW5kIFJldmVyc2UgTnVtYmVyID09PT09Iik7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJPcmlnaW5hbCBudW1iZXIgOiB7MH0iLCB0ZW1wTnVtYmVyKTsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlJldmVyc2UgbnVtYmVyICA6IHswfSIsIHJldmVyc2VOdW1iZXIpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuIik7CgogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0iKTsKICAgICAgICAgICAgaWYgKHRlbXBOdW1iZXIgPT0gcmV2ZXJzZU51bWJlcikKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIkVudGVyZWQgTnVtYmVyIGlzIGEgcGFsaW5kcm9tZSBOdW1iZXIiKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJFbnRlcmVkIE51bWJlciBpcyBub3QgYSBwYWxpbmRyb21lICBOdW1iZXIiKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbiIpOwogICAgICAgICAgICBDb25zb2xlLlJlYWRMaW5lKCk7CiAgICAgICAgfQogICAgfQp9[/fusion_syntax_highlighter][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

  • Here
    • originalNumber Create an integer variable & store a value entered by the user in the console.
    • tempNumber Create a new integer variable to store the value of the original number for calculation.
    • remainder Create a new variable remainder which stores the modulo value
    • reverseNumber” variable will store generated reverse number.
    • Create a while loop which runs only if the original number is bigger than 0.
    • After getting the reverse number, check the condition for Palindrome Number.

[/fusion_text][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”4″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]

Compile, Run & Output

[/fusion_title][fusion_imageframe image_id=”4002|medium” max_width=”512″ style_type=”” blur=”” stylecolor=”” hover_type=”none” bordersize=”” bordercolor=”” borderradius=”” align=”none” lightbox=”no” gallery_id=”” lightbox_image=”” lightbox_image_id=”” alt=”” link=”” linktarget=”_self” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” filter_hue=”0″ filter_saturation=”100″ filter_brightness=”100″ filter_contrast=”100″ filter_invert=”0″ filter_sepia=”0″ filter_opacity=”100″ filter_blur=”0″ filter_hue_hover=”0″ filter_saturation_hover=”100″ filter_brightness_hover=”100″ filter_contrast_hover=”100″ filter_invert_hover=”0″ filter_sepia_hover=”0″ filter_opacity_hover=”100″ filter_blur_hover=”0″]https://tutorials.eu/wp-content/uploads/2020/07/Output-300×263.png[/fusion_imageframe][fusion_separator style_type=”default” sep_color=”” border_size=”0″ icon=”” icon_size=”” icon_circle=”” icon_circle_color=”” alignment=”center” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” /][fusion_imageframe image_id=”4005|medium” max_width=”512″ style_type=”” blur=”” stylecolor=”” hover_type=”none” bordersize=”” bordercolor=”” borderradius=”” align=”left” lightbox=”no” gallery_id=”” lightbox_image=”” lightbox_image_id=”” alt=”” link=”” linktarget=”_self” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” filter_hue=”0″ filter_saturation=”100″ filter_brightness=”100″ filter_contrast=”100″ filter_invert=”0″ filter_sepia=”0″ filter_opacity=”100″ filter_blur=”0″ filter_hue_hover=”0″ filter_saturation_hover=”100″ filter_brightness_hover=”100″ filter_contrast_hover=”100″ filter_invert_hover=”0″ filter_sepia_hover=”0″ filter_opacity_hover=”100″ filter_blur_hover=”0″]https://tutorials.eu/wp-content/uploads/2020/07/Output2-300×210.png[/fusion_imageframe][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”4″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Advanced Version of a Palindrom Software in C#[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]

If you are more curious about what I actually perform step by step then you can write this program with few extra lines for an amazing output.

[/fusion_text][fusion_syntax_highlighter theme=”” language=”x-php” line_numbers=”” line_wrapping=”” copy_to_clipboard=”” copy_to_clipboard_text=”” font_size=”” border_size=”” border_color=”” border_style=”” background_color=”” line_number_background_color=”” line_number_text_color=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]ICAgIGNsYXNzIFByb2dyYW0KICAgIHsKICAgICAgICBzdGF0aWMgdm9pZCBNYWluKHN0cmluZ1tdIGFyZ3MpCiAgICAgICAgewogICAgICAgICAgICBpbnQgb3JpZ2luYWxOdW1iZXIsIHRlbXBOdW1iZXIsIHJlbWFpbmRlciwgcmV2ZXJzZU51bWJlciA9IDA7CgogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiXG4iKTsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIkVudGVyIGFuIGludGVnZXIgbnVtYmVyIik7CiAgICAgICAgICAgIG9yaWdpbmFsTnVtYmVyID0gaW50LlBhcnNlKENvbnNvbGUuUmVhZExpbmUoKSk7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJcbiIpOwoKICAgICAgICAgICAgdGVtcE51bWJlciA9IG9yaWdpbmFsTnVtYmVyOwoKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIj09PT09PT09PT09PT1Mb2dpYyBDYWxjdWxhdGlvbj09PT09PT09PT09PT09Iik7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCI9PT09PSBCZWZvcmUgV2hpbGUgTG9vcCA9PT09PSIpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiT3JpZ2luYWwgbnVtYmVyID0iICsgb3JpZ2luYWxOdW1iZXIpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiVGVtcG9yYXJ5IG51bWJlciA9IiArIHRlbXBOdW1iZXIpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiUmV2ZXJzZSBudW1iZXIgPSIgKyByZXZlcnNlTnVtYmVyKTsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlxuXG4iKTsKCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCI9PT09PSBXaGlsZSBsb29wIHN0YXJ0PT09PT09PT09PT09PT0iKTsKCiAgICAgICAgICAgIHdoaWxlIChvcmlnaW5hbE51bWJlciA+IDApCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIHJlbWFpbmRlciA9IG9yaWdpbmFsTnVtYmVyICUgMTA7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiUmVtYWluZGVyID0iICsgcmVtYWluZGVyKTsKICAgICAgICAgICAgICAgIHJldmVyc2VOdW1iZXIgPSByZXZlcnNlTnVtYmVyICogMTAgKyByZW1haW5kZXI7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiUmV2ZXJzZSBudW1iZXIgPSIgKyByZXZlcnNlTnVtYmVyKTsKICAgICAgICAgICAgICAgIG9yaWdpbmFsTnVtYmVyIC89IDEwOwogICAgICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIk9yaWdpbmFsIG51bWJlciA9IiArIG9yaWdpbmFsTnVtYmVyKTsKICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJJdGVyYXRpb24gY29tcGxldGVcXG4iKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiPT09PT0gV2hpbGUgbG9vcCBlbmRpbmc9PT09PT09PT09PT09PSIpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiXG5cbiIpOwoKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIj09PT09IEFmdGVyIGxvb3AgPT09PT09PT09PT09PT09PSIpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiPT09PT0gRmluZCBSZXZlcnNlIE51bWJlciA9PT09PSIpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiT3JpZ2luYWwgbnVtYmVyIDogezB9IiwgdGVtcE51bWJlcik7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJSZXZlcnNlIG51bWJlciAgOiB7MH0iLCByZXZlcnNlTnVtYmVyKTsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbiIpOwoKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Iik7CiAgICAgICAgICAgIGlmICh0ZW1wTnVtYmVyID09IHJldmVyc2VOdW1iZXIpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJFbnRlcmVkIE51bWJlciBpcyBhIHBhbGluZHJvbWUgTnVtYmVyIik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiRW50ZXJlZCBOdW1iZXIgaXMgbm90IGEgcGFsaW5kcm9tZSAgTnVtYmVyIik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4iKTsKICAgICAgICAgICAgQ29uc29sZS5SZWFkTGluZSgpOwogICAgICAgIH0KICAgIH0=[/fusion_syntax_highlighter][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”4″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”none” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” fusion_font_variant_title_font=””]Output of Advanced version[/fusion_title][fusion_imageframe image_id=”4001|medium” max_width=”” style_type=”” blur=”” stylecolor=”” hover_type=”none” bordersize=”” bordercolor=”” borderradius=”” align=”none” lightbox=”no” gallery_id=”” lightbox_image=”” lightbox_image_id=”” alt=”Advance code Output” link=”” linktarget=”_self” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” filter_hue=”0″ filter_saturation=”100″ filter_brightness=”100″ filter_contrast=”100″ filter_invert=”0″ filter_sepia=”0″ filter_opacity=”100″ filter_blur=”0″ filter_hue_hover=”0″ filter_saturation_hover=”100″ filter_brightness_hover=”100″ filter_contrast_hover=”100″ filter_invert_hover=”0″ filter_sepia_hover=”0″ filter_opacity_hover=”100″ filter_blur_hover=”0″]https://tutorials.eu/wp-content/uploads/2020/07/advanced-output-300×224.png[/fusion_imageframe][fusion_title title_type=”text” rotation_effect=”bounceIn” display_time=”1200″ highlight_effect=”circle” loop_animation=”off” highlight_width=”9″ highlight_top_margin=”0″ before_text=”” rotation_text=”” highlight_text=”” after_text=”” content_align=”left” size=”1″ font_size=”” animated_font_size=”” line_height=”” letter_spacing=”” text_color=”” animated_text_color=”” highlight_color=”” style_type=”default” sep_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]Summary[/fusion_title][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]So now you know what a palindrome is, and how to check with a C# program if a number is a palindrom number. This will come in handy, when it comes to interviews for a job or a university.[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

Enter your email and we will send you the PDF guide:
Enter your email and we will send you the PDF guide