June 1, 2023
Program to use reverse loop difference of 2 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
by : Nadeem Khan
Quick Summary:
Program to use reverse loop difference of 2 in C Language copy #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