Use 5 udfs and 5 udfs by yourself
This below is actually not very difficult, take a closer look to better understand.
# Include <stdio. h> // function declaration // void sayHi (); // function implementation // void sayHI () // {// printf ("Hello everyone !! \ N "); // void zjsjx (int n) // {// int I, j; // for (I = 1; I <= n; I ++) {// for (j = 1; j <= I; j ++) {// printf ("*"); //} // printf ("\ n"); //} void pxsbx (int n ); void pxsbx (int n) {int I, j, k; for (I = 0; I <= n; I ++) {for (j = 0; j <= I; j ++) {printf ("") ;}for (k = 0; k <= n; k ++) {printf ("*") ;}printf ("\ n") ;}// int MyPower (int n, int s); // int MyPower (int n, int s) // {// int c = 1; // for (int I = 1; I <= s; I ++) {// c = n * c; ///} // return c; //} // int Myjdz (int a); // int Myjdz (int) // {// if (a> = 0) {// return a; //} else {// return-; ///} //} int main (int argc, const char * argv []) {// function call // sayHI (); //// constant // const int nume = 100; // printf ("% d", nume ); // enumeration // a group of limited evergreen // customize an enumeration for a grade type // enum grade {one, two, three, four }; // define the grade type variable // enum grade g1; // g1 = one; // g1 = three; // printf ("g1 = % d \ n ", g1); // enumeration definition // typedef enum {red, green, blue} Color; // Color c1 = blue; // printf ("c1 = % d \ n", c1); // switch (c1) {// case red: // printf ("I like red \ n"); // break; // case green: // printf ("I like yellow \ n"); // break; // case blue: // printf ("I like blue \ n"); // break; // default: // break; //} // typedef enum {lieutenant, Lieutenant, Lieutenant General, Lieutenant General} junxian; // junxian b1 = Lieutenant General; // printf ("% d \ n", b1); // switch (b1) {// case Lieutenant: // printf ("your rank is Lieutenant \ n"); // break; // case Lieutenant: // printf ("your rank is Lieutenant \ n "); // break; // case CAPTAIN: // printf ("your rank is Captain \ n"); // break; // case major: // printf ("your rank is major \ n"); // break; // case Lieutenant Colonel: // printf ("your rank is Lieutenant Colonel \ n "); // break; // case Colonel: // printf ("your rank is Colonel \ n"); // break; // case Major General: // printf ("your rank is Major General \ n"); // break; // In case: // printf ("your rank is Lieutenant General \ n "); // break; // case General: // printf ("your rank is General \ n"); // break; ///// default: printf ("you do not have the rank \ n"); // break; //} // zjsjx (); // int n; // printf ("Enter the layers "); // scanf ("% d", & n); // zjsjx (n); int n; printf ("Enter the side length of the parallelogram \ n "); scanf ("% d", & n); pxsbx (n); // int n, s; // printf ("Enter your bottom \ n "); // scanf ("% d", & n); // printf ("Enter your power \ n"); // scanf ("% d ", & s); // printf ("% d \ n", MyPower (n, s); // int; // printf ("Enter the number \ n"); // scanf ("% d", & a); // printf ("% d \ n ", myjdz (a); return 0 ;}