First Upload
This commit is contained in:
34
21 - recorstion/ex8.c
Normal file
34
21 - recorstion/ex8.c
Normal file
@@ -0,0 +1,34 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user