Search
 
SCRIPT & CODE EXAMPLE
 

C

nested loop in c

#include<stdio.h>
void main(){
    int N,i,j;
    printf("enter 'N':
");
    scanf("%d",&N);
    printf("
");
    for(i=1;i<=N;i++){
        for(j=1;j<=i;j++){
            printf("*   ");
        }
        printf("
");
    }
    printf("
");
}
Comment

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;  
 }  
 
Comment

PREVIOUS NEXT
Code Example
C :: struct in struct 
C :: Find the how many bits is turned on in a numebr 
C :: C# special character display 
C :: fifo in c 
C :: size of operator in c language 
C :: writing structures in c 
C :: loops questions on c 
C :: realloc in c 
C :: C Syntax of struct 
C :: example of source file 
C :: fungetc 
C :: voide means in c 
C :: allocating memory for 1Mb text file in C 
C :: https://www.tiktok.com/@kaiwan.99/video/7115521325766069510?is_from_webapp=1&sender_device=pc&web_id=7083069815002449410 
C :: semicolong after for() loop stackoverflow 
C :: error: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-werror=alloc-size-larger-than=] 
C :: C Assigning addresses to Pointers 
C :: worst fit program in c 
C :: sum of fibonacci series in c 
C :: c pointers to struct 
C :: simpy process return value 
C :: C Why enums are used? 
C :: mettre int dans string c % 
C :: fgets langage c 
C :: string compare in c 
C :: string once declared 
C :: ctest run specific test 
C :: printf("%d", 10 ? 0 ? 5:1:1:12) what will print 
C :: jframe mittig positionieren 
Dart :: elevated button size flutter 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =