code for pattern jpr January 28, 2021 pattern code for pattern aaaaaaaaa bbbbbbbb#include <iostream>using namespace std;int main(){ for (char i = 'a'; i <= 'z'; i++) { for (char j = 'a'; j <= 'z'; j++) { cout << i; } cout << endl; } return 0;} Read more »
code for abcde_______________z jpr January 28, 2021 pattern code for abcde_______________z#include <iostream>using namespace std;int main(){ for (char i = 'a'; i <= 'z'; i++) { for (char j = 'a'; j <= 'z'; j++) { cout << j; } cout << endl; } return 0;} Read more »
Code to Dram Hollow rectangular jpr January 27, 2021 pattern Code to Dram Hollow rectangular #include <iostream>using namespace std;int main(){ int n; cin >> n; for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { if (i == 1 || i == n || j == 1 || j == n) { cout << "*"; } else cout << " "; } cout << endl; } return 0;} Read more »
Reverse method of colume patern jpr January 26, 2021 pattern Reverse method of colume patern #include <iostream>using namespace std;int main(){ int n; cin >> n; for (int i = 1; i <= n; i++) { for (int j = n; j >= 1; j--) { cout << j; } cout << endl; } return 0;} Read more »
print colume method Pattern jpr January 26, 2021 pattern print col method Pattern #include <iostream>using namespace std;int main(){ int n; cin>>n; for (int i = 1; i <=n; i++) { for (int j=1; j<=n; j++) { cout<<j; } cout<<endl; } return 0; } Read more »
Pattern Designing jpr January 26, 2021 pattern Draw a Pattern of like this #include <iostream>using namespace std;int main(){ int n; cin >> n; for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j = j + 1) { cout << i ; } cout << endl; } return 0; } Read more »
Draw a simple rectangular pattern jpr January 26, 2021 pattern Draw a simple rectangular pattern #include <iostream>using namespace std;int main(){ int n; cin >> n; for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j = j + 1) { cout << " * "; } cout << endl; } return 0; } Read more »