34 lines
938 B
C
34 lines
938 B
C
#include "General.h"
|
|
|
|
//---------------------------------------------------------------------------------------
|
|
// InitialDivisions
|
|
// ----------------
|
|
//
|
|
// General : Checks the difference between the number of odd digits and the
|
|
// odd number.
|
|
//
|
|
// Parameters :
|
|
// num - a number (int)
|
|
//
|
|
// Return value : The difference between the number of odd digits and the
|
|
// odd number. (unsigned short).
|
|
//
|
|
//---------------------------------------------------------------------------------------
|
|
// Programmer : Cohen Idan
|
|
// Student No : 211675038
|
|
// Date : 30.12.2019
|
|
//---------------------------------------------------------------------------------------
|
|
void InitialDivisions(int num)
|
|
{
|
|
if (num == ONE)
|
|
printf("%hu\n", ONE);
|
|
else
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
void main(void)
|
|
{
|
|
InitialDivisions(12345);
|
|
} |