#include<stdio.h>
int main ()
{
int size,a[100];
int i,j,k;
printf("Enter size of the array\n");
scanf("%d",&size);
printf("Enter elements of the array\n");
for(i=0;i<size;i++)
scanf("%d",&a[i]);
for(i=0;i<size;i++)
{
for(j=i+1;j<size;j++)
{
if(a[i]==a[j])
{
for(k=j;k<size;k++)
{a[j]=a[j+1];
size--;
}
}
}
}
for(i=0;i<=size;i++)
printf("%d\t",a[i]);
return 0;
}
#include<stdio.h>
Usually one element at a time. If you want to process all elements of an array, you write a loop.Usually one element at a time. If you want to process all elements of an array, you write a loop.Usually one element at a time. If you want to process all elements of an array, you write a loop.Usually one element at a time. If you want to process all elements of an array, you write a loop.
You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
ring me and ill explain - 086 22222222222222227 ring me
abdulrahman
#include<stdio.h>
i cant write
Usually one element at a time. If you want to process all elements of an array, you write a loop.Usually one element at a time. If you want to process all elements of an array, you write a loop.Usually one element at a time. If you want to process all elements of an array, you write a loop.Usually one element at a time. If you want to process all elements of an array, you write a loop.
http://www.assignmentsclub.com/
You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.
Did you know that memory allocation is not needed to display the matrix? However, the C program is to find the sum of all the elements.
The most common is Microsoft Word
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
int main (int,char* argv[]) { int i, for (i=0;i<arg;++i) printf ("% 2d:% s\a";i,argv[i]); return o; }
TO use a c language first step is to know about the c language and the steps to use the c progrmming language with the help of any elders or with the teachers. TO use the arrays you have to get th eknowledge of "c" language
ring me and ill explain - 086 22222222222222227 ring me