c language Archives - Ebhor.com Read The Latest Post Java, Css, Html, Php learning articles Sat, 28 Jan 2023 07:12:19 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://www.ebhor.com/wp-content/uploads/2021/05/ebhor_logo_100x.jpg c language Archives - Ebhor.com 32 32 Series generation https://www.ebhor.com/series-generation/ https://www.ebhor.com/series-generation/#respond Fri, 27 Jan 2023 09:01:17 +0000 http://ebhor.com/?p=117 Write a program that produces the following output using for loop [crayon-663bdc6e6c7de356442502/] program is…. This program is compiled in Turbo C++ compiler 3.0 ——————————————————————– [crayon-663bdc6e6c7e7724676313/]

The post Series generation appeared first on Ebhor.com.

]]>
Write a program that produces the following output using for loop

100
200 202
300 304 308
400 406 412 418
.
.
.
.
900 916 932 ... . ... ... .. .. 1028

program is…. This program is compiled in Turbo C++ compiler 3.0
——————————————————————–

#include<stdio.h>
#include<conio.h>
void main()
{
    int x=0,i,j,a=0,b;
    clrscr();
    for(i=100;i&lt;=900;i+=100){
        x=i/100;
        for(j=0;j &lt; x;j++){
            printf("%6d",i+(j*a));
        }
        a=a+2;
        printf("\n");
    }
    getch();
}

The post Series generation appeared first on Ebhor.com.

]]>
https://www.ebhor.com/series-generation/feed/ 0