hi mga bro need help, can anyone give some code of loop problem sa C+? plsssssssssssss i need it important kaau ,sample lang mga bro tanxx daaan...
hi mga bro need help, can anyone give some code of loop problem sa C+? plsssssssssssss i need it important kaau ,sample lang mga bro tanxx daaan...
What kind of loops? Is it for loop, while loop, do-while loop or iteration? If yes, try google.
heheh naka try nako sa google pro dili kaau masabtan ngad2 pro naka tabng man gamay raOriginally Posted by eax
![]()
There are many kinds of loop...
The FOR loop, While loop, DO- While loop...
Depends on how you use 'em.
example:
x=0;
while(x!=5)
x++;
or
for(x=0;x!=5;x++);
btaw be specific with what loop you want...pero sakto naman to gisulti ni Lord_Ac
for(x=1;x<=5;x++)
{
printf("Gwapo ko + %d ...\n", x);
}
Output:
Gwapo ko + 1...
Gwapo ko + 2...
Gwapo ko + 3...
Gwapo ko + 4...
Gwapo ko + 5...
This is a homework question, but what the heck. I'm kindda bored:
Code:#include <iostream> #include <string> using namespace std; int main() { string name; int count; cout << "What's your name? "; cin >> name; cout << "How many times do you to want make fun of yourself? "; cin >> count; for(int i = 0; i < count; i++) { cout << name << " says that simoncpu is sooooo cute!" << endl; } return 0; }![]()
tapolan ayy...
wow...arent der any gud books 4 u 2 anderstan lups? do u rili nid 2 pos dat hr?
nyahaha @ newstarb
Similar Threads |
|