13579
3579
579
79
9
#include <stdio.h>
int main()
{
int i,j;
for(i=1;i<=9;i+=2)
{
for(j=i;j<=9;j+=2)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
Related Links:
- More Number Pattern Programs
- Star Pattern Programs in C
- Alphabet Pattern Programs in C
- Series Programs in C
for(int i=1;i<=5;i++)
ReplyDelete{ if(i%2==1)
k=1;
else
k=2;
for(int j=1;j<=i;j++)
{
System.out.print(k);
k=k+2;
}
System.out.println();
}
#include
ReplyDeleteint main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=(2*i-1);j<=9;j+=2)
printf("%d ",j);
printf("\n");
}
}
i can have another code for this program
ReplyDeleteWe can millions ways to do a program but a program with one with limited code lines and high simplicity only counts
ReplyDeleteplease keep complete c basics tough programs
ReplyDeleteint i,j,n;
ReplyDeletescanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=i;j<=n;j++)
printf("%d",2*j-1);
printf("\n");
}
int l,i,n,j,k;
ReplyDeletescanf("%d",&n);
l=1;
for(i=1;i<=n;i++)
{
k=l;
for(j=i;j<=n;j++)
{
if(k%2==1)
{
printf("%d",k);
}
k=k+2;
}
l=l+2;
printf("\n");
}
pisttheoQterc_re Marisol Powell https://marketplace.visualstudio.com/items?itemName=4incasorpo.Jessika-gratuita-2021
ReplyDeletecepeconfsa
MagtemWat_za Kaylee Castro https://wakelet.com/@flucelreiria595
ReplyDeleteinarimon
Werabsumpu Sara Silva This
ReplyDeleteclick
site
dmilzonosyn