iv
,PROGRAM 2 :Write a void function that receives a 4 digit number and calculates
the sum of squares of first 2 digits and last 2 digits numbers. E.g if 1234 is passed
as argument then function should calculate (12)^2+(34)^2
PROGRAM 3 : Write a program (WAP) that program that prompts the user for a
file name and then reads and print the contents of the requested file in upper
case.
v
, PROGRAM 4 : WAP to print a string in reverse order.
PROGRAM 5 : WAP to count the word “to” and “the” present in the file “poem.txt”
vi