Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

nested loop example in c

#include <stdio.h>  
 int main()   
 {  
     int n, i;  
     for(n = 1; n <= 20; n = n + 1) {  
         for(i = 1; i <= 10; i = i + 1) {  
             printf("%d X %d = %d
", n, i, n*i);  
         }      
     }  
     return 0;  
 }  
 
Source by cpbook.subeen.com #
 
PREVIOUS NEXT
Tagged: #nested #loop
ADD COMMENT
Topic
Name
6+8 =