Basic Loop Practice (Very Easy)
Print numbers from 1 to N.
Print numbers from N to 1.
Print all even numbers from 1 to N.
Print all odd numbers from 1 to N.
Print the first N multiples of a given number X.
Find the sum of numbers from 1 to N.
Find the sum of even numbers from 1 to N.
Find the sum of odd numbers from 1 to N.
Given an integer N, print its last digit.
Given an integer N, remove the last digit and print the remaining number.
Given an integer N, print all digits from right to left.
Example: 6397 → 7 9 3 6
Given an integer N (can be negative), print all digits from right to left.
Given an integer N, print all digits from right to left and handle the case when N = 0.
Given a positive integer N, count the number of digits.
Given an integer N, count the number of digits (handle N = 0).
Given an integer N (can be negative), count the number of digits.
Given an integer N, find the sum of its digits.
Given an integer N (can be negative), find the sum of its digits.
Given N, find the product of its digits.
Given N, find the largest digit.
Given N, find the smallest digit.
Given N, count how many digits are even.
Given N, count how many digits are odd.
Given N, check whether all digits are the same.
Given N, check whether the first digit equals the last digit.
Given N, check whether it contains only even digits.
Given N, check whether the sum of digits is divisible by 3.
Given N, check whether the sum of digits is greater than the product of digits.
Given N, check whether it contains the digit 0.
Given N and a digit D, count how many times D occurs in N.
Read 5 numbers and print the last digit of each number.
Read T different numbers and print the last digit of each number.
Read T different numbers and print the sum of digits of each number.
Check whether a number is a Harshad number (divisible by sum of digits).
Find the difference between sum of even digits and sum of odd digits.