Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n = 30, proizv = 1, g = 30;;
- for(int i = 0; i < n; i++) {
- for(int j = 0; j < n; j++) {
- if(i == j) {
- printf("%d ", n-i);
- proizv = proizv * (n-i);
- }
- else {
- printf("%d ", 0);
- }
- }
- printf("\n");
- }
- printf("%d", proizv);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement