Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <stdio.h>
- #include <windows.h>
- using namespace std;
- int x;
- int main() {
- system("chcp1250");
- system("cls");
- printf("Podaj liczbe naturalna: ");
- scanf("%d", &x);
- printf("\nWczytana liczba x=%d",x);
- printf("\n\nKwadrat liczby x=%d",x);
- printf("%d^2= %d",x,x*x);
- printf("\n\nSzescian liczby x=%d ",x);
- printf("%d^3= %d\n\n",x,x*x*x);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement