Docsity

Integers-Introduction to Programming-Lab Mannual, Exercises of Computer Programming

Partial preview of the text

Download Integers-Introduction to Programming-Lab Mannual and more Exercises Computer Programming in PDF only on Docsity!

๎€Š Write a program that asks the user to type 10 integers of an array and an integer value V. The program must search if the value V exists in the array and must remove the first occurrence of V, shifting each following element left and adding a zero at the end of the array. The program must then write and display the final array.

๎€Š Write a program that asks the user to type 10 integers of an array and an integer value V and an index value i between 0 and 9. The program must put the value V at the place i in the array, shifting each element right and dropping off the last element. The program must then write the final array.

๎€Š Write a piece of code which prints the characters in a cstring in a reverse order. ๎€Š char s[10] = "abcde"; ๎€Š char* cptr; ๎€Š ๎€Š // WRITE YOUR CODE HERE

๎€Š Write a program that outputs all the prime numbers till the number entered by the user

๎€Š Perform 4-letter WORD UNSCRAMBLING i.e. List all possible combinations of 4-letters in a word. Ex: The word 'TEST' can be unscrambled as TEST,TETS,TSET,TSTE,TTSE,TTES,etc.