#include
using std::cout;
int main()
{
int a = 0;
while (a != 11) //While a does not equal 11
{
a++; //add 1 to a
cout << a << "\n"; //print a and add newline
}
cout<<"The loop has ended";
return 0;
}
printf ("x")
Yes, you can use for-loop in a C program compiled by Turbo C.
No, why did you think so?
#includeint main(){int i;for(i=2;i
* ** *** **** simply use dis... { int x,y; for(x=1;x<=4;x++) { for(y=1;y<=x;y++) printf("*"); printf("\n"); } }
printf ("x")
Add the missing parts.
how do we use loops in c plus plus programing and what are basic differences between do,for and while loop
It depends on what program you design really
void line(int length) { for(int i=0; i<length; ++i) std::cout<<'_'; std::cout<<std::endl; }
Yes, you can use for-loop in a C program compiled by Turbo C.
odd loop means at least the loop execute once.
In C++, a for loop is structured as follows: for( int index = 0; index < 10; ++i ) { //do something }
No, why did you think so?
kk
Yes, you can program games with C++.
Exactly what do you mean by 'C program in Java'