Answers for "it is possible to convert c program code to algorithm tool"

C
0

it is possible to convert c program code to algorithm tool

#include <stdio.h> 
int main()
{
	int arr[10], i, j, k, Size;
		printf("n Please Enter Number of elements in an array  :   ");
	scanf("%d", &Size);
	printf("n Please Enter %d elements of an Array n", Size);
	for (i = 0; i < Size; i++)
	{
    	scanf("%d", &arr[i]);
   	}     
 	for (i = 0; i < Size; i++)
	{
	for(j = i + 1; j < Size; j++)
		{
    		if(arr[i] == arr[j])
    		{
    			for(k = j; k < Size; k++)
    			{
    				arr[k] = arr[k + 1];
				}
				Size--;
				j--;
			}
		}
	}

 	printf("n Final Array after Deleteing Duplicate Array Elements is:n");
 	for (i = 0; i < Size; i++)
  	{
 		printf("%dt", arr[i]);
  	}	     
 	return 0;
}
Posted by: Guest on January-20-2022

Code answers related to "it is possible to convert c program code to algorithm tool"

Code answers related to "C"

Browse Popular Code Answers by Language