Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int n;
- unsigned long long result = 1;
- printf("Введите значение n: ");
- scanf("%d", &n);
- for (int i = 0; i < n; i++) {
- result *= 2;
- }
- printf("2 в степени %d равно %llu\n", n, result);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement