Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
# include stdio.h>
# include string.h>
# include conio.h>
void main()
{
int i=0,count=0;
char a[100],b;
clrscr();
for(i=0;i<100;i++)
a[i]=0;
}
i=0;
printf("\nENTER THE STRING: ");
gets(a);
printf("ENTER THE CHARACTER U WANT TO COUNT; ");
scanf("%c",&b);
for(i=0;a[i]!='\0';i++)
if(a[i]==b)
count++;
printf("\nTHE CHARACTER IS %c",b);
printf("\nTHE TOTAL OF ABOVE CHARACTER IS %d",count);
getch();
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
ENTER THE CHARACTER WHICH U WANT TO COUNT: A
THE CHARACTER IS A
THE TOTAL OF ABOVE CHARACTER IS 2
solve for radius(R) of a circle of its area is to be inputted by a user. also display compute the circle diameter hint: area= pir21 pi=2.1416
Need someone to look over my assignment for correctness and make any necessary changes.
Define a structure to store roll no, name and marks of a student. b) Using the structure of Q2. a), above write a ''C'' program to create a file "student.dat". There must be one r
Aim: To implement a program to swap two numbers using reference arguments. Code: void swap(int *a, int *b) { int temp; temp=*a;
Write a program to calculate the total resistance of a series or parallel circuit. The maximum number of resistors is two. We need to decide whether the user wants the to
Problem 1. Discuss polymorphism in c++. Explaining Polymorphism 2. Write a program in c++ to read a 3X2 matrix and find smallest number in that matrix. Writin
This problem familiarizes you with using random numbers in C++. The program is to compute a good approximation of π using a simulation method called "Monte Carlo". The following fi
Operator overloading - c++ program: Write a program in c to define operator overloading. class matrix{ private : int x[2][2];
burger ordering system programming?
write a simple c++ program to that use the value to add five number .your program should prompt the user to enter these five numbers one after the other
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd