Professional Documents
Culture Documents
Assignment Sir Amir
Assignment Sir Amir
Assignment Sir Amir
#include <iostream>
using namespace std;
int main() {
int rows = 5; // Number of rows in the shape
return 0;
}
OUTPUT
2 Write a program using C++ to implement the given shape below
using loops of your choice. Take the screen shot when program
runs successfully and shows the same output as given below.
*
# #
& & &
#include <iostream>
using namespace std;
int main() {
int rows = 3;
return 0;
}
OUTPUT