Write a program to read a name and the displays it in abbreviated form
Answers
Answered by
0
Explanation:
INSTITUTE OF ENGINEERING
#include<stdio.h>
#include<string.h>
void main()
{
int i,h;
char a[10],b[10],c[10];
printf("Enter your first name\n");
scanf("%s",&a[i]);
printf("enter your middle name\n");
scanf("%s",&b[i]);
printf("Enter your last name\n");
scanf("%s",&c[i]);
printf("Displaying your name\n");
printf("%c",a[0]);
printf(".");
printf("%c",b[0]);
h=strlen(c);
for(i=0;i<=h;i++)
{
printf("%c",c[i]);
}
}
mark as brainliest
Similar questions
Math,
4 months ago
Math,
4 months ago
Hindi,
9 months ago
World Languages,
9 months ago
Physics,
1 year ago