Find the best solutions to your questions at Westonci.ca, the premier Q&A platform with a community of knowledgeable experts. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.
Sagot :
Answer:
The program in C is as follows:
#include <stdio.h>
int main(){
char name[] = "Mr. Royal";
int age = 20;
char address[] = "Lagos, Nigeria";
printf("Your name is %s.\n", name);
printf("You are %d years old\n", age);
printf("Your address is %s.", address);
return 0;
}
Explanation:
This initializes the name
char name[] = "Mr. Royal";
This initializes the age
int age = 20;
This initializes the address
char address[] = "Lagos, Nigeria";
This prints the name
printf("Your name is %s.\n", name);
This prints the age
printf("You are %d years old\n", age);
This prints the address
printf("Your address is %s.", address);
Change the necessary details to yours
We hope this information was helpful. Feel free to return anytime for more answers to your questions and concerns. We appreciate your time. Please come back anytime for the latest information and answers to your questions. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.