subject

In C coding, write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. The output should include the input character and use the plural form, n's, if the number of times the characters appears is not exactly 1.You may assume that the string does not contain spaces and will always contain less than 50 characters. Ex: If the input is:

n Monday
the output is:

1 n
Ex: If the input is:

z TodayisMonday
the output is:

0 z's
Ex: If the input is:

n It'ssunnytoday
the output is:

2 n's
Case matters.

Ex: If the input is:

n Nobody
the output is:

0 n's
n is different than N.

#include
#include

int main(void) {

/* Type your code here. */

return 0;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
Your friend kayla is starting her own business and asks you whether she should set it up as a p2p network or as a client-server network. list three questions you might ask to kayla decide which network to use and how her answers to those questions would affect your recommendation.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
⭐️⭐️⭐️ what network is larger in size? man or wan? you ⭐️⭐️⭐️
Answers: 2
You know the right answer?
In C coding, write a program whose input is a character and a string, and whose output indicates the...
Questions
question
Mathematics, 22.07.2020 08:01
question
Mathematics, 22.07.2020 08:01
question
Mathematics, 22.07.2020 08:01
question
Social Studies, 22.07.2020 08:01
question
Mathematics, 22.07.2020 08:01
question
Mathematics, 22.07.2020 08:01
question
Biology, 22.07.2020 08:01
question
Mathematics, 22.07.2020 09:01