6.5.2 Finding the largest among a series of numbers.

৬.৫.২ সংখ্যাৰ এটা শৃংখলাৰ ভিতৰত সৰ্ববৃহৎ টো বিচাৰি উলিওৱা।

Similar to the provious problem, we will use an array to store the element and then we will apply the logic to find the largest among them.

প্ৰভিয়ছ সমস্যাৰ দৰে, আমি উপাদানটো সংৰক্ষণ কৰিবলৈ এটা এৰে ব্যৱহাৰ কৰিম আৰু তাৰ পিছত আমি সেইবোৰৰ ভিতৰত আটাইতকৈ ডাঙৰটো বিচাৰি বলৈ যুক্তি প্ৰয়োগ কৰিম।

Thus steps 1 and 2 will be the same as the previous problem. The code segments are presented below.

এনেদৰে পদক্ষেপ 1 আৰু 2 আগৰ সমস্যাৰ দৰে একে হ’ব। কোড খণ্ডবোৰ তলত উপস্থাপন কৰা হৈছে।

Stop 3: Finding the largest element

বন্ধ কৰক 3: আটাইতকৈ ডাঙৰ উপাদান টো বিচাৰি উলিওৱা

In order to find the largest number, we will apply a logic that we have already ;learned Class 9. Let present the flowchart below.

আটাইতকৈ ডাঙৰ সংখ্যাটো বিচাৰিবলৈ, আমি ইতিমধ্যে ;শ্ৰেণী 9 শিকা এটা যুক্তি প্ৰয়োগ কৰিম। তলৰ ফ্লোচাৰ্টউপস্থাপন কৰিবলৈ দিয়ক।

The code segment for the above stop is presented below.

ওপৰোক্ত ষ্টপৰ বাবে কোড খণ্ডটো তলত উপস্থাপন কৰা হৈছে।

Step Declaring the result

ফলাফল ঘোষণা কৰা পদক্ষেপ

This step is similar to the Step 4 of the previous problom.

এই পদক্ষেপটো পূৰ্বৱৰ্তী প্ৰব্লমৰ পদক্ষেপ 4-ৰ দৰেএকে।

The complete C program for finding the largest number among a series of numbers is shown in Example 6.4.

সংখ্যাৰ এটা শৃংখলাৰ ভিতৰত সৰ্বাধিক সংখ্যা বিচাৰি উলিওৱাৰ বাবে সম্পূৰ্ণ চি প্ৰ’গ্ৰামটো উদাহৰণ 6.4-ত দেখুওৱা হৈছে।

Example 6.4 A C program to find the largest number among a series of numbers using an array.