Computer Science, asked by za25764497, 3 months ago

write a program in aaray to display your name​

Answers

Answered by Anonymous
0

Answer:

1. #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]); ...

2.   #include <iostream> #include <string> using namespace std; int main(){ string adS="Robert Brett Roser"; char a; for(int i=0;i<adS.rfind(' '); i++){ for(a=65; a<=90;a++){

Answered by ItzMissKomal
0

Answer:

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

}

}

Similar questions