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,j=0,b=0,count=0;
int a[100];
for(i=0;i<100;i++)
a[i]=0;
}
i=0;
clrscr();
printf("\nENTER THE LIMIT OF NO: ");
flushall();
scanf("%d",&j);
for(i=0;i { printf("\nENTER THE NO %d:-",i+1); scanf("%d",&a[i]); } printf("\nENTER THE NO THAT U WANT TO COUNT: "); flushall(); scanf("%d",&b); for(i=0;i { if(b==a[i]) { count++; } } printf("\nTHE NO %d IS REPEATED %d TIMES",b,count); getch(); } OUTPUT : ENTER THE LIMIT OF NO: 4 ENTER THE NO 1 : 5 ENTER THE NO 2 : 4 ENTER THE NO 3 : 4 ENTER THE NO 4 : 4 THE NO 4 IS REPEATED 3 TIMES
printf("\nENTER THE NO %d:-",i+1);
scanf("%d",&a[i]);
printf("\nENTER THE NO THAT U WANT TO COUNT: ");
scanf("%d",&b);
for(i=0;i { if(b==a[i]) { count++; } } printf("\nTHE NO %d IS REPEATED %d TIMES",b,count); getch(); } OUTPUT : ENTER THE LIMIT OF NO: 4 ENTER THE NO 1 : 5 ENTER THE NO 2 : 4 ENTER THE NO 3 : 4 ENTER THE NO 4 : 4 THE NO 4 IS REPEATED 3 TIMES
if(b==a[i])
count++;
printf("\nTHE NO %d IS REPEATED %d TIMES",b,count);
getch();
OUTPUT :
ENTER THE LIMIT OF NO: 4
ENTER THE NO 1 : 5
ENTER THE NO 2 : 4
ENTER THE NO 3 : 4
ENTER THE NO 4 : 4
THE NO 4 IS REPEATED 3 TIMES
Execution of for loop
Study the following class diagram, additional information and answer the questions that follow: MovieTicket movieName: string TicketPrice: doub
#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by
what is c language
polishing the jewel game with c coding
Implement the search property from catalogue menu option. After selecting this option the user should be asked to specify the property using the following sub-menu: 1. Specif
Defines the entry point for the console application. // #include "stdafx.h" #include #include #include"conio.h" using namespace std; double Determinant(double a[][3],int forde
Rules for overloading an operator This summarizes the most significant points you need to know in order to do operator function overloading. The only operators you may o
Conversion between Objects of Different Classes As the compiler does not know anything about the user-defined type, the conversion instructions are to be specified in a functio
C++ improves on many of C's features and provides object-oriented programming capabilities used for software production, quality and reusability. C++ was developed by Bjarne Strons
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd