Answer to Question #293567 in C for miaka

Question #293567

Create a program like simsimi program with at least 10-20 questions, the program would interact with the user some important details about the user.

1
Expert's answer
2022-02-03T08:04:28-0500
#include <iostream>


int main()
{
    int age, height, weight;
    std::string name, favourite_food, book, country, city, gender, last_visited_city;


    std::cout << "What is your name: ";
    std::cin >> name;
    std::cout << "What is your gender: ";
    std::cin >> gender;
    std::cout << "What is your age: ";
    std::cin >> age;
    std::cout << "In what country do you live: ";
    std::cin >> country;
    std::cout << "What is your favourite food: ";
    std::cin >> favourite_food;
    std::cout << "What is your favourite book: ";
    std::cin >> book;
    std::cout << "What is your height: ";
    std::cin >> height;
    std::cout << "What is your weight: ";
    std::cin >> weight;
    std::cout << "City where do you live: ";
    std::cin >> city;
    std::cout << "What is your last visited city: ";
    std::cin >> last_visited_city;
    
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS