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

#Include #Include Void Main (CLRSCR For (Int Num 0 Num 10 Num++) Cout "Testing The For Loop " Endl Getch )

This C++ program uses a for loop to print the text "testing the for loop" 11 times, with each iteration incrementing the variable num from 0 to 10. It clears the screen, runs the loop to display the output, and 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)
30 views

#Include #Include Void Main (CLRSCR For (Int Num 0 Num 10 Num++) Cout "Testing The For Loop " Endl Getch )

This C++ program uses a for loop to print the text "testing the for loop" 11 times, with each iteration incrementing the variable num from 0 to 10. It clears the screen, runs the loop to display the output, and 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();
for (int num=0; num<=10; num++)
cout<<"testing the for loop "<<endl;
getch();
}

You might also like