0
How to generate a pattern in c??which looks like one by one
help
5 odpowiedzi
+ 4
One by one? you mean like two number 1 standing side by side?
+ 4
Give one example your question is not clear.
For pattern programs you should be strong in loops and conditions .
+ 2
I got one by two
https://code.sololearn.com/cguO17oxL1rR/?ref=app
+ 1
AKSHAY🇮🇳 haha!
You could have just output 11 😂😂
...but still it’s not a pattern (that was probably the only part of the question that was clear)
Here’s a simple 1 by 1 pattern:
int main()
{
for(int i = 0; i <= 50; i++)
{
if (i % 2)
printf("~");
else
printf("1");
}
return 0;
}
0
DavX Yeah I could, but in India we used to say fractional sign as "by" like if it is
3
—
4
We will say it "3 by 4", and as one by one is not possible, so 1 by 2🤷🏻♂️