C++ Program to Convert a Person’s Name in Abbreviated

Hello Geeks! Are you ready to learn the topic of “C++ Program to Convert a Person’s Name in Abbreviated“? If yes then don’t worry. I’m going to teach the possibility to execute this task using this article.

C++ Program to Convert a Person’s Name in Abbreviated

C++ Program to Convert a Person’s Name in Abbreviated

Program Code

#include<iostream>
using namespace std;
int main()
{
     /*Program By Ghanendra Yadav
     Visit http://www.programmingwithbasics.com/
     */ 
     char fname[20], mname[20], lname[20];
     cout<<"Enter The First Name Middle Name & Last Name n";
     cin>>fname >>mname >>lname;
     cout<<"Abbreviated Name: ";
     cout<<fname[0]<<"."<<" "<<mname[0]<<"."<<" ";  cout<<lname<<endl;
     return 0;

}

Final Words

I hope the article about “C++ Program to Convert a Person’s Name in Abbreviated” will be helpful to you. If you have facing any issues during this program execution then feel free and ask us through the comment section. We will help you. Don’t forget to share the article and bookmark us.

Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment