Erster Commit

This commit is contained in:
2026-09-24 14:39:54 +02:00
commit dc05214087
245 changed files with 20517 additions and 0 deletions
@@ -0,0 +1,25 @@
//Made by Vlad. Budnitski.
//AlphaTech - Programming Course.
#include <stdio.h>
int main()
{
int num; // 531
int reversedNum;
int units, tens, hundreds;
printf("Enter a 3-digit number: ");
scanf("%d", &num);
units = num % 10; // 1
tens = (num / 10) % 10; // 3
hundreds = num / 100; // 5
reversedNum = units; // 1
reversedNum = reversedNum * 10 + tens; // 13
reversedNum = reversedNum * 10 + hundreds; // 130 + 5 = 135
printf("Reversed Number of %d is: %d%d%d \n", num, units, tens, hundreds);
printf("Reversed Number of %d = %d \n", num, reversedNum);
return 0;
}