Page 1 of 1

I want a solution as soon as possible and clear , correct in C : Q2:

Posted: Mon May 02, 2022 12:37 pm
by answerhappygod
I want a solution as soon as possible and clear ,
correct in C :
Q2:
I Want A Solution As Soon As Possible And Clear Correct In C Q2 1
I Want A Solution As Soon As Possible And Clear Correct In C Q2 1 (116.07 KiB) Viewed 35 times
Exercise 2 - Printing a pattern of numbers Exercise Objectives ✓ Using nested loops Problem Description Develop a C program that prints the following pattern using nested for loops. Sample Output Input a number: 4 The pattern will appear as follows: 1 2 3 4 1 2 3 12 1 12 1 2 3 1 2 3 4 Exercise 3: Implement some operations on array digits Exercise Objectives Using loop Using Arrays Problem Description: . Develop a C program that find the summation and average of digits in an array of characters: Add your full name and your student number as a comment at the beginning of the program. Prompts the user to enter a string that containing alphabets and digits. Increment the digits by 2 and print the array to show the new values. Print the summation digits inside string Print the average of the digits inside the string HINT: to convert from character to integer you can use << (string - '0') . Sample output: Enter the string containing both digits and alphabet Layan1234 The Number of Digits in the string = 4 After increment the digits by 2: Layan3456 Sum of all digits = 18 The average of all digits = 4 ... Program finished with exit code 0 Press ENTER to exit console.