SHARE
TWEET

Untitled

a guest Jun 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream.h>
  2. #include<conio.h>
  3. #include<stdio.h>
  4. #include<string.h>
  5. int i,n;
  6. char s1[30],s2[30];
  7. void main()
  8. {
  9. gets(s1);
  10. puts(s1);
  11. for(i=0;i<=strlen(s1);i++)
  12. {if ((s1[i]>='A')&&(s1[i]<'Z')) s2[i]=s1[i]+'32';
  13. else s2[i]=s1[i];};
  14. gets(s2);
  15. getch();}
RAW Paste Data
Top