2 Reputation Points
Ranked #4K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #54.9K
Re:
Hi.I want to thank in advance for all replys. Well let's get to the problem. I need to a C++ code that will do the following: 1.User inputs a number 2.All digits of the number inputed not divisable by 2(odd numbers) must be multiplicated. (* operation ). 3.Show multiplication result. … |
|
My code is the following: [code] # include <stdio.h> # include <sys/types.h> # include <sys/ipc.h> # include <sys/sem.h> # include <unistd.h> # include <stdlib.h> # include <time.h> # define NS 3 union semun { int val; struct semid_ds *buf; ushort *array; }; int main(void) { int sem_id, sem_value, i; key_t … |