Discover a wealth of knowledge at Westonci.ca, where experts provide answers to your most pressing questions. Experience the convenience of getting reliable answers to your questions from a vast network of knowledgeable experts. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.
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
Thanks for stopping by. We are committed to providing the best answers for all your questions. See you again soon. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.