Hey....Help me in this one please... I have to encode something that the output will come out as example....10, 8, 6, 4, 2, 0..... please help me what I did wrong....Thanks ...and I like to thank Narue too...for helping me in my last problem....I have to do this without using my c said sir :'(
#include<stdio.h>
main()
{
int a[100];
int b=0;
int c=2;
int d;
printf("Write the Number:");
scanf("%d",&d);
//Subtract d to c
while(a>=0)
{
a[b]=d-c;
}
printf ( "The Answer is %d\n", a[b]);
return 0;
}