Using looping concept I want to Display a word input as Capital letter and output as Capital-Small-Capital-Small and so...on.

Sep 3 2010 1:30 PM
Hi,
This is Janmejaya want some help.

I am trying to do a program mentioned below.

Q:Using looping concept and typecasting I want to Display a word input as Capital letter and output as Capital-Small-Capital-Small  and so...on. I don't want to use Lcase() and Ucase() functions.

Suppose I will enter a word as "PROGRAMMING"  from keyboard as an input.

The output will be:

P
Pr
PrO
PrOg
PrOgR
PrOgRa
PrOgRaM
PrOgRaMm
PrOgRaMmI
PrOgRaMmIn
PrOgRaMmInG.





Thanks in Advance.


Answers (1)