0% found this document useful (0 votes)
35 views

Name

This C++ program uses a while loop to print the text "abdul basit" 5 times. It initializes a counter variable to 0, uses that in a while loop condition to iterate as long as the counter is less than 5, prints the text each iteration and increments the counter, then waits for a key press before ending.

Uploaded by

api-3695543
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Name

This C++ program uses a while loop to print the text "abdul basit" 5 times. It initializes a counter variable to 0, uses that in a while loop condition to iterate as long as the counter is less than 5, prints the text each iteration and increments the counter, then waits for a key press before ending.

Uploaded by

api-3695543
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

#include<iostream.

h>
#include<conio.h>
void main()
{
clrscr();
int counter;
counter=0;
while(counter<5)
{
cout<<"abdul basit ";
counter++;
}
getch();
}

You might also like