Looking for reliable answers? Westonci.ca is the ultimate Q&A platform where experts share their knowledge on various topics. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform. Experience the convenience of finding accurate answers to your questions from knowledgeable experts 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
Visit us again for up-to-date and reliable answers. We're always ready to assist you with your informational needs. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Thank you for visiting Westonci.ca, your go-to source for reliable answers. Come back soon for more expert insights.