C & Python codes
Started with Hello World!
Declared and printed the value of variable
Arithmetic operations done
Relational operations done
Logical operations done
Relational operator
Adding 5 with user input
Multiplying 3 with user input
Dividing 6 with user number
Get a two-digit number from user and print the one’s digit
Get a two-digit number from user and print the ten’s digit
Get a three-digit number from user and print the one’s digit
Get a three-digit number from user and print the hundred’s digit
Get a three-digit number from user and print the ten's digit
Get a three-digit number from user and print sum of the digits
Get a two-digit number from user and print the reverse of the number
Get a three-digit number from user and print the reverse of the number
Get a four-digit number from user, reverse only the first two digits of the number, then print the number
Get a four-digit number from user and only reverse the last two digits of the number, then print the number
Get a two-digit number from user and make the one’s digit as 0, then print it
Get a two-digit number from user and make the ten’s digit as 1, then print it
Get a three-digit number from user and make the one’s digit as 2, then print it
Get a three-digit number from user and make the ten’s digit as 0, then print it
Get a number from user and subtract 5 from that number if the number is odd, then print the result. Do not use “if”.