Question 1 #include using namespace std; void draw(int row, int column, char symbol){ int i, j; for(i=0;i using namespace std; int factorial(int x){ int ans=1; while(x>1){ ans = ans * x; x = x - 1; } return ans; } int main(){ int x,y,i; do{ cout << "x = "; cin >> x; }while(x<1); do{ cout << "y = "; cin >> y; }while(y <= x); for(i=x;i<=y;i++){ cout << i << "! = " << factorial(i) << endl; } return 0; } Question 4 #include using namespace std; int numbers[10]={12,5,7,19,4,8,20,17,2,3}; bool searchnumber(int x){ int i=0; while(i<10){ if(numbers[i]==x) return true; i++; } return false; } int main() { int x, i; cout << "x="; cin >> x; if(searchnumber(x)) cout << "Found"<< endl; else cout << "Not found" << endl; return 0; } Question 5 #include using namespace std; string sentence="Sacred Heart Canossian College"; int countchar(char x){ int i, count=0; for(i=0;i='a'&&x<='z') code = x - 'a'; else if(x>='A'&&x<='Z') code = x - 'A'; if(('A'+code)==sentence[i]||('a'+code)==sentence[i]) return true; } return false; } int countchar(char x){ int i, count=0; for(i=0;i