 Hello friends, I am Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to explain how you can read an array from user, then how you can print its values on an output string, and how you can calculate its sum and how you can print that. So before starting the explanation, I just want to share my information. If you want to watch more programming video, so you can go to the description of this video and you can find links of various players there. So now I'm going to implement the solution. So first I'm going to cover this part. I will tell you how we can read an array. So let's say we want 10 elements to be entered by the user. Then those will be printed back with a program on output screen and along with the sum. So starting from the beginning, first of all, I am declaring an array A10. So A is the name of an array and 10 is the size, then variable I and S equals to 0. So S will be containing the sum of an array and I is for iterating, reading and printing of an array for loop purpose. So now I'm going to print a message enter 10 numbers. So this message will be displayed on output screen. Now we need to read 10 numbers from user. So we have to implement scanf, but we are not going to write scanf 10 types. We are just repeating that scanf with the help of loop. So here I'm going to implement a loop, which will repeat 10 times. And with this loop, I'm going to repeat scanf statement 10 times. And inside scanf, you can see I'm writing ampersand AO5. So ampersand AO5, so initially I give 0. So first it will read the value of DELO index, then 1 index, then 2 index and so on. So loop is starting from 0 and it will end till 9. So 0 to 9 means 10 numbers. So all 10 different numbers will be stored inside array at different location. And those locations we are identifying with the help of index, right? So here you can see I have not used any curry base because for is repeating only one statement. So if we are repeating only one statement of optional, so this way this process is complete. We are able to read an array from user. Now we need to print its values and we need to calculate its sum. So for that purpose, I'm writing one more printed. So it will print the message you entered, right? And after this, I'm writing one more loop. It will also repeat 10 times. This loop will also repeat 10 times. Now inside this loop, I'm going to print values of added. So I'm going to print values of added. So here you can see now I'm using printf and this printf will print AO5. So I is initially zoom. So first it will print the value which is available at the index, then one index, then two index and so on. And so just printing the, just after printing the value. I'm going to add it into as variable. So first location value will be printed and immediately it will be added to us. Then second index value will be printed. It will be added to us. So this way all 10 values will be printed on output screen and they will be stored as some into as variable. So after completion of this loop, after completion of this loop, I just need to print the value of s. So here I'm writing one more statement. So this statement will print sum of added. This statement will print sum of added and then you can close the main function. So this way you can see this is the reading process. This is the reading process. Then here printing and calculate some both are performing together and here I am printing the calculated sum. So this way all three operations are performed. We are able to read added. We are able to print its value and we are able to print it. So this way I explained you how we can perform all three operations together. I hope you understood whatever I explained in this video. If you want to watch more programming related videos, you can open my channel, go to playlists and you can watch various programming related videos. Thank you.