How to resolve the algorithm Even or odd step by step in the உயிர்/Uyir programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Even or odd step by step in the உயிர்/Uyir programming language
Table of Contents
Problem Statement
Test whether an integer is even or odd. There is more than one way to solve this task:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Even or odd step by step in the உயிர்/Uyir programming language
Source code in the உயிர்/uyir programming language
முதன்மை என்பதின் வகை எண் பணி {{
எ இன் வகை எண்{$5} = 0;
படை வகை சரம்;
"எண்ணைக் கொடுங்கள்? ") ஐ திரை.இடு;
எ = எண்{$5} ஐ விசை.எடு;
ஒருக்கால் (எ.இருமம்(0) == 1) ஆகில் {
படை = "ஒற்றை";
} இல்லையேல் {
படை = "இரட்டை ";
}
{எ, " ஒரு ", படை, "ப்படை எண் ஆகும்"} என்பதை திரை.இடு;
முதன்மை = 0;
}};
You may also check:How to resolve the algorithm Sorting algorithms/Quicksort step by step in the Mathematica/Wolfram Language programming language
You may also check:How to resolve the algorithm Magnanimous numbers step by step in the REXX programming language
You may also check:How to resolve the algorithm Terminal control/Coloured text step by step in the AutoHotkey programming language
You may also check:How to resolve the algorithm Look-and-say sequence step by step in the 8086 Assembly programming language
You may also check:How to resolve the algorithm Conditional structures step by step in the BQN programming language