Answers:
==========================================================
#include <iostream>
using namespace std;
int main()
{
// for Printing
// 1
// 1 2 3
for(int a= 0;a<=5;a+=2)
{
for(int b=1;b<a;b++){
cout<<b<<" ";
}
cout<<endl;
}
//for Printind 1 2 3 2 1
{
for(int d=1;d<=3;d++){
cout<<d<<" ";
}
for(int e=2;e>0;e--){
cout<<e<<" ";
}
cout<<endl;
}
// For printing 1 2 3
// 1
for(int f=3;f>=1;f-=2)
{
for(int g=1;g<=f;g++){
cout<<g<<" ";
}
cout<<endl;
}
// Hope This helpz
}
using namespace std;
int main()
{
// for Printing
// 1
// 1 2 3
for(int a= 0;a<=5;a+=2)
{
for(int b=1;b<a;b++){
cout<<b<<" ";
}
cout<<endl;
}
//for Printind 1 2 3 2 1
{
for(int d=1;d<=3;d++){
cout<<d<<" ";
}
for(int e=2;e>0;e--){
cout<<e<<" ";
}
cout<<endl;
}
// For printing 1 2 3
// 1
for(int f=3;f>=1;f-=2)
{
for(int g=1;g<=f;g++){
cout<<g<<" ";
}
cout<<endl;
}
// Hope This helpz
}
=======================================
For More Help Post Your Comments Below:
=======================================
For More Help Post Your Comments Below:
=======================================
Contact Yahoo Email Customer Care Service Support Phone Number (UK)0800-014-8929
ReplyDeleteyahoo help
Yahoo Email Customer Care Service Support Phone Number.
ReplyDelete0800-014-8929
yahoo mail help
yahoo help