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