using C++ For Loop printing of counting 1 to 20
loop pattern is
for(data Type variableDeclaration; condition; increment )
for( int a=1; a<5; a++)
#include<iostream>
using namespace std;
main()
{
for(int a=1; a<=20; a++)
{
cout<<a;
}
return 0;
}
loop pattern is
for(data Type variableDeclaration; condition; increment )
for( int a=1; a<5; a++)
#include<iostream>
using namespace std;
main()
{
for(int a=1; a<=20; a++)
{
cout<<a;
}
return 0;
}
No comments:
Post a Comment