To change a string in title case by using only (stdio.h)..in c language #beginners @Write_Coding_

preview_player
Показать описание
Hello Everyone!!
Har Har Mahadev Guys..🙏
@Write_Coding_
Here is the to change a string in title case without using any other header file..only using stdio.h..
@Write_Coding_
@EUROPAKinderprogramm
Here is to convert string in capital case..😊
Write a program that prompts user to input a string and find number of words in the string. Words can be separated by more than one spaces and any other punctuation marks.
Here to check the number perfect number or not perfect number..in c language..for beginners...BCA Students...
How 28 is a perfect number..
Is 0 is a perfect number..
What is the perfect number..
What is perfect number in C ++
How to be perfect in C programming..
Is 0 is a perfect number..
Is 0 is a perfect number..
What is the perfect number..
What is perfect number in C ++..
@Write_Coding_
#cprogramming #clanguage #easyway #sumofnterms #shortvideo #beginners #check #perfectnumber #cprogramming #clanguage #bca #students#strings #cprogramming #easyway #sumofnterms #capital #case#title #case #change #strings #stdio.h#beginners #without #using #any #other #header #file
Рекомендации по теме
Комментарии
Автор

Har Har Mahadev..🕉️🙏
Code..👇👇
//Change a string in title case
//only using stdio.h//
#include<stdio.h>

void title(char str[]) {
int x=0;
int prevChar=' ';
while(str[x]!='\0') {
if (prevChar==' {
if(str[x]>='a'&& str[x]<='z')
str[x]=str[x]-32;
}
else if(str[x]>='A'&& str[x]<='Z')
str[x]=str[x]+32;

prevChar=str[x];
x++;
}
}

int main() {
char str[30];
printf("Enter a string:");
gets(str);

title(str);
puts(str);

return 0;
}

Write_Coding_
join shbcf.ru