Monday 9 April 2012

35.write a program which reads a capital letter and print equivalent lower case letter.

#include<conio.h>
#include<iostream.h>
void main()
{

  clrscr();
  char s1,s2;
  cout<<"Enter The Uppercase charecter\n";
  cin>>s1;
   s2=s1+32;
   cout<<"\nLower case letter of" <<s1<<" is "<<s2;
   getch();
}

No comments:

Post a Comment

Write a program which reads a set of integers into an integer array and then prints "YES"if all of them are same otherwise print "NO".

#include<stdio.h> int main() { int a[10],M=0,i,n; printf("enter a value for n\n"); scanf("%d",&n); fo...