program to use reverse a difference for loop in c language
#include<stdio.h>
int main()
{
int k;
for(k=10; k>=2; k-=2)
printf("%d\t",k);
printf("\n");
return 0;
}
output
10 8 6 4 2
#include<stdio.h>
int main()
{
int k;
for(k=10; k>=2; k-=2)
printf("%d\t",k);
printf("\n");
return 0;
}
10 8 6 4 2
#include<stdio.h>
int main()
{
int i;
for(i=1; i<=10; i++)
{
printf("%d\t",i);
}
printf("\n");
return 0;
}
1 2 3 4 5 6 7 8 9 10