Reverse Words of any string – Python Code

A program in python that accept on a string from the keyboard and print the whole string in reverse order. It should not reverse the words, it should only reverse the order of these words.

Hangman Game- Python Code

Hangman Game is a letter guessing game. In the game of Hangman, a clue word is given by the program that the player has to guess, letter by letter. The player guesses one letter at a time until the entire word has been guessed. (In the actual game, the player can only guess 6 letters […]

Cows and Bulls Problem – Python Solution

lets us program a game to play the “cows and bulls” with the user. The game works like this: Randomly generate a 4-digit number. Ask the user to guess a 4-digit number. For every digit that the user guessed correctly in the correct place, they have a “cow”. For every digit the user guessed correctly in the […]

Palindrome Program – multiple Python solutions

Palindrome Program – multiple Python solutions using python indexs and simple looping methods.

C++ to Print Scale Up character Pattern

C++/C program to print scale up pattern on the screen. /* Program to scale up made by : rakesh kumar */ #include using namespace std; int main() { int m,n,k; int i,j,l,a; cout<<“\n Enter value of m,n,k :”; cin>>m>>n>>k; char str[m][1000]; for(int i=0;i<m;i++) { fflush(stdin); cin.getline(str[i],1000); } // display the scale up output for(i=0;i<n;i++) { […]