Advertisement
HristoBaychev

swapCaps

Oct 6th, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. /*Задача13. Акоимамесимволеннизchar str[] = “HELLO”, заменете
  2. всичкитесимволисглавнабуквасъссъответнитесимволисмалка
  3. буква.*/
  4.  
  5. #include <stdio.h>
  6.  
  7.  
  8. int main() {
  9.     char str[] = "HELLO";
  10.  
  11.     str[0] = 'h';
  12.     str[1] = 'e';
  13.     str[2] = 'l';
  14.     str[3] = 'l';
  15.     str[4] = 'o';
  16.  
  17.     printf("%s", str);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement