#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i,j,k;
int count=1,num[10],pos=0;
clrscr();
printf("Enter the Array Element ");
for(i=0;i<10;i++)
{
scanf("%d",&a[i]) ;
}//close the for loop
for(i=0;i<10;i++)
{
count=1,pos++;
for(j=0;j<10;j++)
{
if(a[i]==a[j])
{
for(k=j;k<10;j++)
a[k]=a[k+1]
}//close the if
count++;
}//close the for loop
num[pos] = count;
}//close the for loop
for(i=0;i<pos;i++)
printf("Repeted Number of IN Arrary %d",num[i]);
}//close the main
/*PROGRAM TO ACCEPT TWO NUMBERS FROM THE USER AND PRINT THEIR MULTIPLICATION. */ #include<stdio.h> #include<conio.h> void main() { int a, b, c; // Declaration of Variables. Variables 'a' & 'b' to hold first & second number. And 'c' to hold result. clrscr(); // To clear the output screen every time program is executed. printf("\n Enter the first number : "); scanf("%d", &a); // To accept the first number. printf("\n Enter the second number : "); scanf("%d", &b); // To accept the second number. c = a*b; // Logic to get the product of the entered two numbers. printf("\n Multiplication of %d & %d = %d", a, b, c); // Displaying result. getch(); // To hold the output screen. }
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
how to write a program that counts automorphic number from 1 to 999
12
class Sunny { void accept(int n) { int n1=n+1; double x=Math.sqrt(n1); if((int)x==x) System.out.println("sunny number"); else System.out.println("not a sunny number"); } }
write a c program to accept a number and generate a square root cube and exponential values
C programm
A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.
What is a credit privacy number???
All number accept 0, SCROLL DOWN
/*PROGRAM TO ACCEPT TWO NUMBERS FROM THE USER AND PRINT THEIR MULTIPLICATION. */ #include<stdio.h> #include<conio.h> void main() { int a, b, c; // Declaration of Variables. Variables 'a' & 'b' to hold first & second number. And 'c' to hold result. clrscr(); // To clear the output screen every time program is executed. printf("\n Enter the first number : "); scanf("%d", &a); // To accept the first number. printf("\n Enter the second number : "); scanf("%d", &b); // To accept the second number. c = a*b; // Logic to get the product of the entered two numbers. printf("\n Multiplication of %d & %d = %d", a, b, c); // Displaying result. getch(); // To hold the output screen. }
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
how to write a program that counts automorphic number from 1 to 999
Start accept 7 number calculate sum print sum stop
k
12
A number field will not accept text. If it does accept text, then it cannot be a number field. Text fields can accept digits, but number fields cannot accept other text. They will only accept digits and other numeric components, like a decimal point for example. Sometimes you will define a field for numbers, such as phone number or code numbers to be text fields. In fact, that is what you should do for that type of data. You never do calculations with phone numbers, like adding them or getting averages, so they can be stored in text fields, as there is no need for them to be stored in number fields. Also, a zero at the start of a phone number, would disappear if entered into a number field, and it would also not allow things like spaces or brackets.