![]() |
Loop
Write program using loops to produce the following output.
output is: &&&&&&& &&&&& &&& & |
Re: Loop
Do it yourself
|
Re: Loop
.
. . . int i=10; int j=0; while(j<i){ while(i>0) { cout<<"&"; i--; } j++; }[PHP] |
Re: Loop
lolzzzz
|
Re: Loop
Here you go. I've indented it to make it easy to see what's going on:
Code:
int main() |
Re: Loop
Hmm, it probably won't work as is; I can't seem to shift those two spaces from the middle of str01. Shabbir, does the forum split long words? If so how about NOT doing that in code blocks?
str01 after the zero should be "ebahh haagf aaghh fhfgf iehdh ihbad ijidg jhbhc hchbh eahab ae", with spaces inserted after every five for the forum's benefit; remove these extra spaces before running the program otherwise it just won't work. |
Re: Loop
Take That Code:
Code:
#include<stdio.h>http://www.imagehostingsite.com/imag...gajgym4o3z.jpg Hope It;s Done |
Re: Loop
Thanx a lot
|
Re: Loop
U wellcome,
but suggestion to u, u have to try with simple coding. |
Re: Loop
mmm, but why bother if you're going to do his homework for him anyway?
|
| All times are GMT +5.5. The time now is 13:25. |