What is the output using for loop? - C Statement

C examples for Statement:for

Description

What is the output using for loop?

Demo Code

#include <stdio.h> 
int main()/*from  w w w .ja  v a  2 s .c  o  m*/
{ 
   int x; 
   for ( x = 10; x > 5; x-- ) 
     printf("The value of x is %d\n", x); 
}

Result


Related Tutorials