#include <stdio.h>
// Function to increase 1 to all digits of an integer
int increaseDigits(int num) {
// Variables
int result = 0;
int multiplier = 1;
// Loop through each digit of the number
while (num > 0) {
// Extract the rightmost digit
int digit = num % 10;
// Increase the digit by 1
digit = (digit + 1) % 10;
// Add the modified digit to the result with appropriate multiplier
result += digit * multiplier;
// Move to the next digit
num /= 10;
multiplier *= 10;
}
return result;
}
// Main function
int main() {
// Input integer
int num;
// Get input from the user
printf("Enter an integer: ");
scanf("%d", &num);
// Call the function to increase digits
int result = increaseDigits(num);
// Display the result
printf("Result: %d\n", result);
return 0;
}