#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
int main ()
{
char nama1[20];
char nama2[20];
int i;
printf("============================\n");
printf("PROGRAM BY TRISNA AYU SILVIA\n");
printf("============================\n");
printf("Masukkan Nama Anda : ");
scanf("%s", nama1);
printf("Masukkan Nama hoby Anda : ");
scanf("%s", nama2);
strcat(nama1, " ");
strcat(nama1, nama2);
printf("\nhallo hobynya %s\n", nama1,nama2);
for(int i=0; i<strlen(nama1);i++){
if (nama1[i]==toupper(nama1[i])){
nama1[i]=tolower(nama1[i]);
}
else
{
nama1[i]=toupper(nama1[i]);
}
}
}
Tidak ada komentar:
Posting Komentar