0 like 0 dislike
15.8k views

Write a function that tests whether two words or phrases are anagrams (permutations of the same letters):

寫一個判斷兩個單詞或詞組是不是符合易位構詞的函數。

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int is_anagrams(char A[],char B[])
{
   /*INSERT YOUR CODE HERE*/


   /*END OF YOUR CODE*/
   //The function should return 1 if two words or phrases are anagrams, 0 if two words or phrases are not anagrams.
}

int main(void)
{
   char A[100],B[100];
   /*INSERT YOUR CODE HERE*/


   /*END OF YOUR CODE*/
   if (is_anagrams(A,B)) printf("Two words or phrases are anagrams");
   else printf("Two words or phrases are not anagrams");

   return 0;
}

Example input:

smartest
mattress

Example output:

Two words or phrases are anagrams

Example input:

dumbest
stumble

Example output:

Two words or phrases are not anagrams

Remember: You may correct the cases, but your code always be revised! 

[Exercise] Coding (C) - asked in Chapter 9: Functions
ID: 39986 - Available when: Unlimited - Due to: Unlimited
| 15.8k views
0 0
STRUPES!

79 Answers

0 like 0 dislike
Hidden content!
** * * * *** ****** *
* *** * ** *
** * * * * ** ** *
int ** *** * *** * B[])
{
* ** ** * int * = {0};

* ** * * int * = {0};

* * * *** int * = * ***

* * ** ** * ** int * = ** ***

**** * * ** ** i = 0; i * * * * i++)
* * * * *** {
** * ** * ** ***** * A[i] = * ***

* ** * ** * * * * *** * * - ** ** *
* * * ** }

* * * ** * **** i = 0; i * ** ** i++)
****** * * {
** * ** ** *** * * B[i] = ** *

* * ** * * *** * * ** * - ** *
* * * * ** ** }

* * * ** i = 0; i *** * 26; i++)
* * ** ** {
* * * * * ** * * * ** != *
**** * * *** * * *** ** * {
** *** ** * * *** * * ** * * * * ** 0;
*** ** * * ** * * ** * }
* ** * * * *** ** * else
* * * ** * **** * ** * * {
* ***** ******* * * * *** ** * ** ** * 1;
** * ** ** ** * **** * ** }
** ** ** * }
* * ***** ** **** * ** ********* * * * * 1 if two * or * are **
* ** * * //0 if two words or *** are not * ***
}

int ** *
{
* * *** ** *** *** **** **** ** **
* * ** * ** *** *** *
* ** ** *** 100, **

**** * *** ***** 100, * **

**** ** * * * * ** **** ** *** ** **** * * or ** * are *** *
***** *** * *** *** *** ** **** ** * or *** are not * ** ******* * *

* *** ***** *** * 0;
}
answered by (-285 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Case 2: Correct output
Case 3: Correct output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
* * ** *** **
* * ** * **** *
** * ** *** * *
int * * * ** * B[])
{
** **** * ***** int * = {0};

** ** ** * int ** * = {0};

** ** * ** * int * = ***** *

*** *** ** ** * * i = 0; i *** * i++)
* * * * * ** ** {
*** *** * ** ** **** * * ******* A[i] = ***** **

* *** * * * ** * **** *** - **** *
* * * *** }

* * * ** * ** * i = 0; i * * * i++)
** ** * ** {
* ** ** ** * ** B[i] = * *

* *** * * ** ** * *** * * * - **
** * * **** }

** **** **** * * i = 0; i ** 26; i++)
* *** ***** {
* *** ******* ** ** * * ** **** != ****
** * * * *** * * {
*** **** ** *** ** * **** * ** * * **** 0;
*** * * *** * * *** }
* * * ** * * * * else
* ** ** * ** *** {
* ** * * ** * * *** * ** * *** 1;
*** * ***** *** ** * * * }
** * * * }
* ***** * * ** ** ** ** ** *** * 1 if two words or * * ** are *** *
* * * * //0 if two ** or ** are not * * *
}

int *
{
* ** * * ** *** * ** * *** **
* **** ** **
* **** ** ** ** 100, ***

* ** * *** ** 100, **

* * * ** *** * ** ** * * * * ** * * ** ** or ** are *** *
* * * * * * ** ** ** * words or **** are not **** * *** *

** **** * * *** *** * 0;
}
answered by (-285 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Case 2: Correct output
Case 3: Correct output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int is_anagrams(char A[],char B[])
{
* * ** ** * * *** * YOUR CODE HERE*/
** ** * ** * ** ** *** i=0,j=0,c[26]={},d[26]={};
** * ** * ** ******* *** ** ** ** * * **** ** * ** * *** ****** *** *** ** * **
** **** * * ** * *** * * * ** * * ** * ***** * ** * * * ** * * ***** * * ** * **
* * * ** ** ** *** ** ** **
** *** * ** ** * **** * * * ********* * * * * **** * * ** * ** **
* * * * *** *** * *** ** ** * ** ** * ** * *** *** ** *** *** * *** *
* * ****** *** ** ** ** *** ** **** ** ** **** ** *** *** ** * **** ** **** * * * ***** *
* * ******* * ** ** ** * * * * * * * ******** *** ** * *
* * * * * **** ** * * ** * *** ** *** * * *** **** ***** ** * * **
** * ** * *** ***** ****** * * ** * * * *** * ** * **** * * * ** * * **** *****
**** * **** * ** **** ** * ** * *** * * **** *** * ******* * ** *
* * *** * * * *** * * *** * ** * * *
* ** * *** *** **
* * * *** * ** ** * * * ** **
** ***** * ** * * ** * ** * *** ** ** *** ** ***
* ** * *** *** * * * * ** ** *** * ** * * * * * * ****** 0;
* *** **** ** ** * * * ******* ***** **
* * * * * * * *
* ** * * * **** ** 1;

** **** **** * *** ** * OF YOUR CODE*/
** * * ***** ** * ** function should return 1 if two words or phrases are anagrams, 0 if two words or phrases are not anagrams.
}

int main(void)
{
* * * ** ****** ** ** A[100]={},B[100]={};
** * *** *** ** YOUR CODE HERE*/
*** * ** ** * * ** * * * * ** *
* *** * * ** * * * * *** ** ** **
*** ** ** * ** * OF YOUR CODE*/
* **** *** ** ** (is_anagrams(A,B)) printf("Two words or phrases are anagrams");
*** ** ** * * ** ** printf("Two words or phrases are not anagrams");
* * *** * ** 0;
}
answered by (-329 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <ctype.h>
#include <string.h>

int is_anagrams(char A[100],char B[100])
{
*** ***** ** * * *** * Array1[26] = {0}, Array2[26] = {0}, i = 0;
** ***** * ** ** * * n, j, k;
    
***** * * ** **** * = strlen(A);
* * * ** ** ** *****
*** **** * *** *** ** *** * ***
* * * * * *
* * ** * ** *** ****** * ** * ** ****** * *** * *
* *** ****** * * * * ** * **** *** * * **** * * * *
** ** ***** * ** ** ** ***** ** * * *
* *** * ** * ***
** ** ** * ******** *
* * * ** ** * * ****
** **** ** ** * ** ** ******* *** *
******* ** * * * **
*** * * ** * * * ** * * * *** * ** * * * *
** * * ********* * ** * ** ** * * * **** ** * * ** * * ***
*** * ** * * ** * *
* ** ** * * ** * *** *
*** * ** * **
** ** *** * * * * * * (i = 0; i < 26; i++)
***** ** * ** * * ***
* ******* ***** ********** ** ** * ***** (Array1[i] != Array2[i])
*** ** ** * * * * * * * *** ** ** * **** ** * * * * * 0;
* *** * **** * *** **
*** * * *
* * ** * *** ***** * ** * * 1;
}

int main()
{
* * ******* * ** ** * * * A[100],B[100];
* * * *** **** * *****
**** * *** * * *** * *
** * ** ** ** * * *** ** *
* ** * ** * * *
* *** ** ** *** ** ** * ** (is_anagrams(A,B))
***** *** *** * ** **
** ** ** ********** * **** * * * * **** * * ** ** * ** words or phrases are anagrams");
*** * * * * ** * ***
** ***** *** ** * ***** * * printf("Two words or phrases are not anagrams");
* * * * ****** ** *****
*** ** ** * * ** * ** 0;
}
answered by (-193 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <ctype.h>
#include <string.h>

int is_anagrams(char A[100],char B[100])
{
*** * * **** ** Array1[26] = {0}, Array2[26] = {0}, i = 0;
* * * * * * ** ** *** n, j, k;
    
*** ***** * * * * * ** = (unsigned)strlen(A);
** * *** *** * ** ***** *
** *** * ** * * * * * ** ** * ** * ***
* * ** *** ** ** ** * *
*** * ** * * * * ***** ** *** * *** * *** * *
* ******** * * *** ** * ******** ** * * ** **** **** * * ***
** *** * **** * * * * ** ** *
* * ** * ** ** *** *
*** * * ***** ** *
* * * ** * *
** ** * * * ***** * * * *
*** * * * * * * * *** **
* ** * * * *** * * ** * ** * *** ** **** *** *
**** ***** ** ** * ** * ** ** ********** * *
****** ** * ** ** * * *
* * * * * *** ***** ** **
** * **** ** ** * **
** ** * * ** *** ** ** ** (i = 0; i < 26; i++)
**** * * ** *** *
* ** * * ** * * **** * ***** ** (Array1[i] != Array2[i])
** * * * ** ** ****** ** * ** * ** ** ** *** ***** ** * * * * ****** 0;
* ***** * * ** * ** * *
* ** *** *** *
* ** **** ** * ** ******* * * 1;
}

int main()
{
** ** * *** * * * * ** A[100],B[100];
** * ** ** * *** ******* *
** *** * *** * * **** * *** ** *** * **
* * ** ** * ****** * ** ** * * * * * *
* * * ** * * ** * *
* * * ****** * (is_anagrams(A,B))
* *** * ***** ** ** *
* **** * **** ** * ***** **** * * * *** * ** words or phrases are anagrams");
**** * *** ** * * * * **
** *** * *** * ** **** ** * * printf("Two words or phrases are not anagrams");
* * ** * ** * ** * ****
* ** ** * * ** ** * * ** * 0;
}
answered by (-193 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Wrong output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include ** * * ***
#include ** * ******
#include * ** * *
int is_anagrams(char A[],char B[])
{
** **** *** * ** * ** * * * * * *
* ********* *** * YOUR CODE HERE*/
* ***** *** * * * * * **** *** * **
** *** * ** ** * ***
** ***** ** *** * * * *********** ** ***** ** * ****** * * 'a' && * ** * *
* * **** *** * ** *** * * *** * ** * * ******* * * **** * ** * ** * * *
** * ** * *** * * ** * **** * * ** * ***** *** ** && **** ** * *
***** * ** ** * **** ** ** ***** ** *** *** **** * * * * ******* **** ** ** **
**** ** ** * *****
* * * ** ** * * *** *** ** ** **** ** **
* * * ** *** * **
* * ** **** * ** * ** * * ** * * * **** *** ** *
* ** *** * * ** * * * **** **** * *** * ** * * ** ** * * *** 0;
* * * * * * * ** **
* * * * ***** ** * * *** 1;


** **** * * OF YOUR CODE*/
* * ** * *** *** function should return 1 if two words or phrases are anagrams, 0 if two words or phrases are not anagrams.
}

int main(void)
{
* * *** ** *** ****** A[100],B[100];

* * ***** * * ** *** ** * ** * *
* * * ** * * **** *** **

** ** * * *** * * * *** ****** ** * * * * words or phrases are * * **** *
** ** * * *** ** ** * printf("Two words or phrases are not anagrams");

* * ** **** *** * 0;
}
answered by (-281 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include * *** ** *
#include *** ***
#include * ****** ****
int is_anagrams(char A[],char B[])
{
**** * * *** **** ** * **** * * *
* * * ***** * * * YOUR CODE HERE*/
*** **** **** * * * *** ** ** * ** *** * * *
*** ** * *** * *** ** * **
*** ** *** ** *** * ** * ** * * ***** * ** *** ** * 'a' && A[i]<='z')
** * * ** *** * * ** ** * **** * **** * * ** ** * ** * * ** * * * ** ** *** ** ****
* **** *** ** ** * * *** ** ** * ***** *** * *** **** *** B[i]<='z')
*** ** * **** *** * * * * **** **** * * * * * **** ** ** *** ******** * * *** *
* * ** * *** * * * **
* ** ** *** * *** * ***** * ** * *** ***
**** * * **** **
** * ** ** *** **** * * ** ** * * ****** * *** * *
** * * * * * *** * ** * *** ******** * *** * ** *** ** * ** * * * *** 0;
* ** * ** * ** *** **
**** *** * * * * ** ** 1;


**** *** ** * * OF YOUR CODE*/
* * * *** * * function should return 1 if two words or phrases are anagrams, 0 if two words or phrases are not anagrams.
}

int main(void)
{
** *** * * *** ** *** A[100],B[100];

*** * ** *** * *** ** * * **
* * ***** ** ** **** ** * *

* ** * ** * * * * * ** * **** * ** *** * words or phrases are ** * * * * *
** ** **** * ***** ** ** * * * * words or phrases are not * * *** * **

** ** ** * * ***** 0;
}
answered by (-281 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int is_anagrams(char a[],char b[])
{
* * * *** *** * *** * * first[26] = {0}, second[26] = {0}, c;
 
   // Calculating frequency of characters in first string
** * ** ** * ****** *** * * a[c]!='\0'; ++c)
* * *** ** * ****** ***    
* ***** *** ** **** * ******* * * * * *** * ')
*** * *** **** * * *** * * * **** ** ****
*** * *** * * * ******** ** *** ** * * * * ** **** * * ** * * * *** ** ** * && a[c] <='Z')
** * ** * *** * * **** * ** *** ** *** *** * * *** ****** *
* * ***** * ** ***** * * * *** ** * ** ****** *** **** * * **** * * **** ** ** * * ** ** * *** **
* ** * ****** *** ** * * ** **** * * * * ** * *** * * * ***** * **** ** ***
* *** ** * ** ** ** **** * *** * * ** ********** * *** * * ****
** ***** * ** *** ** * * * * *** * ** * * * ** **** *** *** ** * **
* * * *** * ** * * *** ** **** ** ***** * ******* * * ** *** *********** ***** *** ** * * ** *    
* *** ** * * ******* ** * ** * * **** **** * * **** * *
* * **** * *** ** * * * * ** ***** ** ** *** * * * * * ** **
* ** * * *** * *** *** * * * * **** * **
* * *** *** ***
* ** **** *** ** *
** ** * ** *** * b[c]!='\0'; ++c)
** *** * * ******* ****    
**** ** * * * * * *** ** * **** * ** * ** * ** * ')
* * ** * *** *** ** * * ** * * *** * *** * ** ***
** ** * ** * *** ** * * * ** *** * ** ** ** ** * ****** * * ** *** && b[c] <='Z')
**** ** * ** * ** * * * * * * * * ** *** ** * *** **
**** ** * ** **** * ** * * * *** ** * **** * ** * ** *** ** * ** * ** ** ** **** * * * * * * ** **
** * ** *** * ** *** * * * * ****** * *** * * * * ** ** * ****
**** *** *** *** ****** * * * ** * ** * * ****** * ** *
* ** * * * * **** * * ** ** ** ** **** * * * ** ****** * * * *
* ** ** * * * ** * ** * *** ** ** ********* ** ** * *** ** * *** ** ** ** **** ****** ** * * ** ** ***    
*** * * ** ***** ** ****** * * ** * * *** *** **** * * ** *
**** ** * * **** * ** * *** * ***** * *** * * * ** ** *** * ***
*** **** * * ** *** * * * ** * * ** * * *
*** ****** * * * ** * **
   // Comparing frequency of characters
 
**** *** * ** * **** ** (c = 0; c < 26; c++)
* * *** ** ** * ** ** * * *** * *
* ** *** ** * ** *** * ***** * * * * * *** * * (first[c] != second[c])
* * **** * * * ** * ** ****** * **** ** ** **** ** **** ** * *** 0;
* ** ** * *** * *** * ** ** ** ** ** * **
 
** ** * * ** 1;
}

int main(void)
{
**** * * **** * ** A[100],B[100];
** * ** ** * *** * * * 100, stdin);
* * ****** ** ** * 100, stdin);
   if (is_anagrams(A,B)) printf("Two words or phrases are anagrams");
* * ** * *** printf("Two words or phrases are not anagrams");

*** * ** * * * * ** 0;
}
answered by (-108 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int is_anagrams(char a[],char b[])
{
**** * * * *** **** * * first[26] = {0}, second[26] = {0}, c;
 
   // Calculating frequency of characters in first string
* ** * ** ** ** * * a[c]!='\0'; ++c)
**** * * * ** ** * ** **    
* * * ** ** * ** ***** ** * * * * *** ** ')
****** ** *** *** * ** * **** ** * *** * * * * *
** ** * * ** *** * * **** ***** ** * * ******* *** **** * *** * *** * && a[c] <='Z')
* ** ** *** *** * ** * * * *** * * * * ** * * * * ******* * **
* * * ***** * * * * ** *** * *** *** ** ** * **** * * *** ** * * * * ** ** * * ** ** * * ** * *
***** ** ** *** ** ** * * *** * *** * ** *** * * * ** * ** * * * *** ** ** ***
* * *** * *** * ***** ** * ***** ******* ** ** ******* * * ** * ** * **
* ***** * * * * ** ******* * ** * ** * **** * * * * * ** ** *
* ** * ** *** ** **** *** * * * ** * * * * *** * * ** ** *** *** * ** ** **** * ** ** *** ***    
** ** ** *** * ** * * ** * **** * * * * ****
**** * * *** *** * * * ** * *** * * ** ** * ****** *** * **** **** ****
***** * *********** *** ** * *** * * **
*** * * * * * * *** * *
****** ** ******** * ** ** *
** * ** * * * ** ** * b[c]!='\0'; ++c)
********* * * * * ** * * *    
* * ***** ** * **** ** * * * * * * * ** * *** ** ')
* ** * ** ** * * ** * **** * *** **
* * * *** * * **** * ******* **** * * * **** * * *** * ** *** * * * && b[c] <='Z')
*** ** * ** ** * ** * * * **** **** *** ** **** * * * ****
* *** * **** * * *** * * **** * **** *** * * * *** * **** * *** ***** * ** ** ** * ** ** * *
* * * ** * * * *** **** * *** ***** *** *** ******* * * * *
**** **** ** ** ** * **** *** * * ** * * * ** ** * * **** ** * * **
* * * ** * **** * * ** * * ** *** * * * * **** * * ***** **** *
** * * ** ** ** * ************* ** ** * ** ** * ** * *** * * * ** ** * * * * **    
**** * **** * ** * * * * **** ** * **** *** ** ** * *
* * **** * *** * ** **** * * * * *** * *** **** ** * ** *** * ****
* * **** * ***** * * * * * **** ** *** **
* *** ***** * *****
   // Comparing frequency of characters
 
* ****** ** * ** * * * ***** *** (c = 0; c < 26; c++)
* * *** * *** * ** * * * * * ** * ** *
*** * * * ** ** * ** * *** **** * * ** * *** * * * ** (first[c] != second[c])
***** ***** ** **** **** * * ** * * *** ** **** **** * * * * ** ** * ** 0;
* ** * * * * * * ** * *** * ****
 
** * ** * *** ** ** * 1;
}

int main(void)
{
* *** * * ** * A[100],B[100];
** * ** * * 100, stdin);
* * **** *** * **** * * * 100, stdin);
   if (is_anagrams(A,B)) printf("Two words or phrases are anagrams");
*** * ** * ** * * printf("Two words or phrases are not anagrams");

* * * * ***** ** * 0;
}
answered by (-284 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int is_anagrams(char a[],char b[])
{
** * * * * * * * first[26] = {0}, second[26] = {0}, c;
 
   // Calculating frequency of characters in first string
** * * * * * ** ******* * a[c]!='\0'; ++c)
** ** *** ****** * ***    
***** * * *** * * * ** ***** * * *** * ** ')
* *** ** * ***** * ** ** ***** ** ** * *
** ** * * * ****** * **** *** **** * ** * * * * ** *** ** * * *** && a[c] <='Z')
* *** * ** * * * * * ***** ** * ** * ** ** *** **** * * *
** ** *** * ** * **** ** ** * * * * * * * * ** ** ** ** * * * * * * * ***
*** * ** * *** * ** *** * **** *** *** * ** ** *** * * * ** * * ** *
* *** * *** **** * * * * ** ** * * ** * * * ** ** * * ** * ** ** *
* * *** ** * ***** ** ** *** ** ** ** ** * * * * *** **** * * *
**** * * * ** ** * * ** ** * *** ***** **** ** * * * ** ** **** * *** * * *    
* * *** ** * **** ** * ** * *** * ** * ** * *** * * * ** **
* * * **** * * * ** * * ** ** ** * * * * *** ***
*** * ** **** *** * * ** * *** ** *
*** * * * * ** ** **
*** ****** ** * * ** *** **
** * ** * ** **** * **** b[c]!='\0'; ++c)
* ** ******* * * ** ***    
** * * * ** *** * * ** * *** * *** * * ***** * ** * ')
** *** * * * * ** ** * **** * ** ** ***** * ** ** * *
* **** ** *** * * *** * * * **** * ** * * * ** * *** ** * * ******* && b[c] <='Z')
*** * * * * * *** ** ** *** * * * *** * * * ** * ** *
* * * ** * ***** * ** * * * *** *** ** * **** * * * * ** ** **** * * * * ** * ** ** ******* ** *
** * * * **** * * * * ** ** * * *** * * *** * ** *** * ***
** ** ** ** * ** * * * * * **** ** *** ******** *** ** ***
* * * * * * * * ****** * * ** *** * ** **** ** ** *** ** **
** * * ** *** * *** * * ** ** * * * * * * * ** ** ***** ***** * * * ** * * * *    
* *** *** ** *** * * ** * ** * * * ** * * * * ** *** *
* * * * ** ***** * * ***** * ** ** * *** ** ** **** *** * * * *
* * *** * * *** *** * ****** * ***** * * ** **
*** ***** **** ** ***
   // Comparing frequency of characters
 
*** **** ** **** * * ****** * * (c = 0; c < 26; c++)
* ** ** *** * * * ** ********** ** * * *
* *** * ** * ** ** ** * *** * * *** *** ***** * * ** ** *** (first[c] != second[c])
** **** * * ** * * * * **** * **** ** * * * *** ** ** ** * *** * 0;
* * ***** *** ** * * *** * ***** * * *
 
* *** *** *** * ** ** 1;
}

int main(void)
{
* *** ** * ** * A[100],B[100];
* * **** * * ** 100, stdin);
* * * * * * * * ** 100, stdin);
   if (is_anagrams(A,B)) printf("Two words or phrases are anagrams");
*** * *** * * printf("Two words or phrases are not anagrams");

** * * ** **** *** 0;
}
answered by (-258 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.214.205
©2016-2025

Related questions

0 like 0 dislike
47 answers
[Exercise] Coding (C) - asked Dec 7, 2017 in Chapter 9: Functions by semicolon (5.2k points)
ID: 35785 - Available when: 2017-12-07 18:00 - Due to: Unlimited
| 7.9k views
0 like 0 dislike
45 answers
[Exercise] Coding (C) - asked Dec 7, 2017 in Chapter 9: Functions by semicolon (5.2k points)
ID: 35784 - Available when: 2017-12-07 18:00 - Due to: Unlimited
| 8.2k views
0 like 0 dislike
41 answers
[Exercise] Coding (C) - asked Dec 14, 2017 in Chapter 9: Functions by semicolon (5.2k points)
ID: 37370 - Available when: 2017-12-14 18:00 - Due to: Unlimited
| 7.2k views
12,783 questions
183,442 answers
172,219 comments
4,824 users