Thursday, 12 January 2012

Write a program that takes a word less than 25 characters long and prints a statement like this: Fractal starts with the letter ‘F’

Write a program that takes a word less than 25 characters long and prints a statement like this: Fractal starts with the letter ‘F’.




#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>

int main()
{    clrscr();
char a[25];
cout << "Enter a Word (less then 25 characters): ";
cin >> a;

cout << "\n\n The Word Starts with the Letter : " << a[0];




getche();
return 0;
}

No comments:

Post a Comment