computer programming

1. Scanf 5 names of you and your friends
2. Printf hi to all of them.
3. Ask all of them for their ages.
4. Printf the information in tables as shown below.

Name age
StudName1 19
StudName2 20
StudName3 18
StudName4 34
StudName5 12

5. Use selection statement to do the following, when the user press 1, show the information of the first person, press 2, for second person and so on until the 5th person

  1. 👍 0
  2. 👎 0
  3. 👁 155
asked by AIRA

Respond to this Question

First Name

Your Response

Similar Questions

  1. C++ program

    #include int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'malacca') printf("Shipping Charge : $25"); else if(ch == 'pahang') printf("Shipping Charge : $50"); else if(ch == 'terengganu')

    asked by Borhan on February 15, 2016
  2. Programming

    #include int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'a') printf("Shipping Charge : $25"); else if(ch == 'b') printf("Shipping Charge : $50"); else if(ch == 'c') printf("Shipping Charge :

    asked by Borhan on February 14, 2016
  3. Programming

    #include int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'a') printf("Shipping Charge : $25"); else if(ch == 'b') printf("Shipping Charge : $50"); else if(ch == 'c') printf("Shipping Charge :

    asked by Borhan on February 13, 2016
  4. C programming

    Enter two integers between 1 to 10 3 4 Both numbers are less than 5. The sum of two numbers is:-1081825676 The product of two numbers is:-1081825680 why are the sum and product so weird? my code: #include int main() { int x; int

    asked by jen on October 9, 2008
  5. Programming

    #include int main() { char ch; printf("Enter Your State Name : "); scanf("%c",&ch); if(ch == 'a') printf("Shipping Charge : $25"); else if(ch == 'b') printf("Shipping Charge : $50"); else if(ch == 'c') printf("Shipping Charge :

    asked by Borhan on February 14, 2016
  1. C Programming

    I am trying to find the sum of two integers. I entered the following program into the Visual Studio and it is telling me that there are errors. Can someone tell me where they are please? #include int main( void ) { int integer1;

    asked by Claire on November 6, 2009
  2. C Programming

    Write a C program that accepts sales made by 5 sales reps for the 4 months that they have been selling the company's products. The program should then find the total sales for 4 months, total sales for each sales rep, and total

    asked by Blessing on September 9, 2014
  3. Computer Programming

    /* Develop a C program that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) account number b) Balance at the beginning of

    asked by Claire on November 22, 2009
  4. c++ program

    will this work for a source code that receive and total collection of payroll amounts entered at the terminal until 999 is reached. #include #include main() { int num = 0; printf("Enter number (-999 to quit:"); scanf("%d" ,&num);

    asked by kasey on October 21, 2011
  5. c++ program

    how can a modfiy this source code to a menu. #include #include #include main() { char cYesNo = '\0'; int iResp1 = 0; int iResp2 = 0; int iResp3 = 0; int iElaspedTime = 0; int iCurrentTime = 0; int iRandomNum = 0; int i1 = 0; int

    asked by kasey on October 24, 2011

More Similar Questions