c language में area of circle का कोड कैसे लिखें Hbs Computer Course

Hello guys welcome to new blog,Hbs computer course .In this blog  we will learn how to make a program of area of circle in c language.

Without timing waste we st
art writing a code of area of circle.





Firstly we will write algorithm of this program after that we move on our code 
        

It is easy to write a code .Algorithm is as follows:-


EXAMPLE- Write an algorithm to find area of circle .

1 Start 


2 Input


3 Area 3.14 *r*r


4 Output area


5 End 

// code for area of circle



  #include<stdio.h>


 #include<conio.h>


void main()


{
int r,a;


printf(" Enter radius of circle");


scanf("%d",&r);


a=3.14*r*r;


printf("\n area of circle=%d",a);


getch();
}   

 

and output of this code



If you don't know what is #include<stdio.h>


#include<conio.h>


so, for knowing follow the following link 

part1:  

https://hbscomputercourse.blogspot.com/2022/12/c-language-definitionprogramalgorithm.html    

In the part 1 you will know about c language . Definition of c,what is program ,what is algorithm ,overall basic concept get it.     

part 2:


In the part 2 you will get keywords, variables, constant and many more must read that blog after that you can understand above code easily 


In this platform you  are not only finding the data but also finding  example with source code , with prove.
-----------------------------------------------------------------------------------

Translation in hindi:

हेलो दोस्तों, नए ब्लॉग में आपका स्वागत है, एचबीएस कंप्यूटर कोर्स में। इस ब्लॉग में हम सी 

भाषा में सर्कल के एरिया का प्रोग्राम बनाना सीखेंगे।


समय की बर्बादी के बिना हम वृत्त के क्षेत्रफल का एक कोड लिखना शुरू करते हैं










सबसे पहले हम इस प्रोग्राम का एल्गोरिदम लिखेंगे उसके बाद हम अपने कोड पर आगे बढ़ेंगे
        
कोड लिखना आसान है। एल्गोरिथम इस प्रकार है: -

उदाहरण- वृत्त का क्षेत्रफल ज्ञात करने के लिए एक एल्गोरिद्म लिखिए।
1 प्रारंभ करें

2 इनपुट

3 क्षेत्र 3.14 *आर*आर

4 आउटपुट क्षेत्र

5 अंत
// सर्कल के क्षेत्र के लिए कोड
   #शामिल<stdio.h>
  #शामिल<conio.h>
शून्य मुख्य ()
{
इंट आर, ए;
प्रिंटफ ("वृत्त की त्रिज्या");
स्कैनफ ("% डी", और आर);
ए = 3.14 * आर * आर;
प्रिंटफ ("\ n सर्कल का क्षेत्र =% डी", क्षेत्र);
गेटच ();
}
 
यदि आप नहीं जानते हैं कि #include<stdio.h> क्या है
#शामिल<conio.h>

तो, जानने के लिए निम्न लिंक का अनुसरण करें

part1: 



भाग 1 में आप सी भाषा के बारे में जानेंगे। सी की परिभाषा, प्रोग्राम क्या है, एल्गोरिथम क्या है, समग्र बुनियादी अवधारणा इसे प्राप्त करें।




भाग 2:



भाग 2 में आपको कीवर्ड्स, वेरिएबल्स, कॉन्सटेंट और बहुत कुछ मिलेगा, उस ब्लॉग को अवश्य पढ़ें 

उसके
 बाद आप उपरोक्त कोड को आसानी से समझ सकते हैं 






Comments