Responsive Ads Here

Wednesday, November 26, 2014

show capital letters in small & small in capital

 

show capital letters in small & small in capital

 

#include<stdio.h>
int main()
{
    char a[100];
    int i,c=0;
    scanf("%s",a);
   for(i=0;a[i]!='\0';i++)
   {
      if(a[i]>=65&&a[i]<=90)
      {
          a[i]=a[i]+32;
      }
      else
      {
          a[i]=a[i]-32;
      }
   }
    printf("%s",a);
    return 0;
}

No comments:

Post a Comment

php4

<?php    // Start the session  session_start();  ?>  <!DOCTYPE html>  <html>  <head>       <link rel=&q...