Computer Science, asked by veenuyadav818, 7 months ago

write a program to accept three names say( Anishu,Aviral, Rahul ) from used and display them in the following way​

Answers

Answered by Abhinab08
1

write a program to accept three names say( Anishu,Aviral, Rahul ) from used and display them in the following way

Answer:

thnx◉‿◉

#include<iostream.h>

#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]);. // by-abhinab08

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]);

}

}

Similar questions