Skip to main content

Hsc c programming questions and answers

"""এইচএসসি পরীক্ষা ২০১৯ ইং 'তথ্য ও
যোগাযোগ প্রযুক্তি' - পঞ্চম অধ্যায়ের সি-
প্রোগ্রামিং যেগুলো প্রায় ১০০% পরীক্ষায়
আসে....!!!
২.১ ত্রিভূজের ক্ষেত্রফল নির্ণয়ের জন্য
প্রোগ্রাম লিখ।
প্রোগ্রাম কোড:
# include <stdio.h>
#include<conio.h>
int main()
{
float base,height,area;
printf(“\n Enter base of the triangle =”);
scanf(“%f”,&base);
printf(“\n Enter height of the triangle=”);
scanf(“%f”,&height);
area=(base*height)/2;
printf(“\n Area of a triangle is=
%2f”,area);
getch();
}
২.২ বৃত্তের ক্ষেত্রফল নির্ণয়ের জন্য
প্রোগ্রাম লিখ।
প্রোগ্রাম কোড:
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int radius;
float area,pi=3.14;
printf(“\n Enter the value of radius:”);
scanf(“%d”,&radius);
area= pi*radius*radius;
printf(“\n Area of a circle is :%f”,area);
getch();
}
২.৩ সেলসিয়াস তাপমাত্রাকে
ফারেনহাইট তাপমাত্রায় রুপান্তরের
জন্য প্রোগ্রাম লিখ।
প্রোগ্রাম কোড:
#include<stdio.h>
#include<conio.h>
main()
{
float c,f;
printf(“\n Enter the Celsius
Temperature:”);
scanf(“%f”,&c);
f=((c*9)/5)+32;
printf(“\n Fahrenheit temperature is
%.2f”,f);
getch();
}
২.৪ কোন সংখ্যা জোড় কিনা, তা
নিণর্য়ের জন্য প্রোগাম লিখ।
প্রোগ্রাম কোড:
#include<stdio.h>
#include<conio.h>
int main()
{
int n;
printf(“\n Enter any integer number:”);
scanf(“%d”,&n);
if(n%2==0)
printf(“\n Your number is even.”);
else
printf(“\n Your number is odd.”);
getch();
}
২.৫ কোন একটি সাল লিপ ইয়ার কিনা,
তা নির্ণয়ের জন্য একটি প্রেগ্রাম
লিখ।
প্রোগ্রাম কোড:
#include<stdio.h>
#include<conio.h>
int main()
{
int year;
printf(“\n Enter the year (4 Digit) to
check:”);
scanf(“%d”,&year);
if(year%400==0|| (year%100!=0&&year
%4==0))
printf(“%d is a leap year.”,year);
else
printf(“%d is not a leap year.”,year);
getch();
}
২.৬ ১+২+৩+…………….+N সিরিজের
যোগফল নির্ণয়ের জন্য প্রোগ্রাম
লিখ।
প্রোগ্রাম কোড:
#include<stdio.h>
#include<conio.h>
main()
{
int s=0;
int i=1;
int n;
printf(“\n Enter the total number of
value:”);
scanf(“%d”,&n);
while(i<=n)
{
s=s+i;
i++;
}
printf(“\n The sum of the value is
%dn”,s);
getch();
}
২.৭ ১ +২ +৩ +……………..+N
সিরিজের যোগফল নির্ণয়ের জন্য
প্রোগ্রাম লিখ।
প্রোগ্রাম কোড:
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int i=1,sum=0,number;
printf(“\n Enter the last number of the
series:”);
scanf(“%d”,&number);
printf(“n The Series is:”);
do
{
printf(“%d”,i);
sum=sum+pow(i,2);
i+=1;
if(i<=number)
printf(“+”);
}while(i<=number);
printf(“n Summation=%d”,sum);
getch();
}

Comments

Popular posts from this blog

Books poem analysis with bangla

Books poem in bangla and with analysis Verse-wise Bangla Translation: What worlds of wonder are our books! As one opens them and looks, New ideas and people rise In our fancies and our eyes. আমাদের বইগুলো কী আশ্চর্য এক জগৎ! যখনই কেউ তা খুলে দেখে, নতুন ভাবনা আর নতুন মানুষ জেগে ওঠে কল্পনায় ও চোখের সামনে। The room we sit in melts away, And we find ourselves at play With some one who, before the end, May become our chosen friend. আমরা যে ঘরে বসে আছি, তা যেন মিলিয়ে যায়, আর আমরা আবিষ্কার করি নিজেদের খেলায় মত্ত কাউকে সঙ্গে নিয়ে, যে হয়তো শেষ পর্যন্ত আমাদের প্রিয় বন্ধু হয়ে উঠবে। Or we sail along the page To some other land or age. Here's our body in the chair, But our mind is over there. অথবা আমরা পৃষ্ঠার ওপর দিয়ে ভাসতে থাকি অন্য কোনো দেশ বা কালের দিকে। আমাদের শরীরটা রয়েছে চেয়ারে, কিন্তু মন চলে গেছে দূরে অন্য কোথাও। Each book is a magic box Which with a touch a child unlocks. In between their outside covers Books hold all things for their lovers. প্রতিটি বই একেকটি জাদুর বাক্স, যা শিশুরা এক ...

🚀 ৫০টি দরকারি কিবোর্ড শর্টকাট (Windows)(বাংলা ব্যাখ্যাসহ)

🚀 ৫০টি দরকারি কিবোর্ড শর্টকাট (Windows) (বাংলা ব্যাখ্যাসহ) (অজানা কিন্তু খুবই কাজে লাগে) ⸻ ১. Ctrl + N → নতুন ফাইল বা ডকুমেন্ট খুলবে (Word, Notepad, Browser ইত্যাদিতে)। ২. Ctrl + Shift + T → আগে বন্ধ হয়ে যাওয়া ব্রাউজার ট্যাব পুনরায় খুলবে। ৩. Ctrl + Shift + Left/Right Arrow → একসাথে পুরো শব্দ নির্বাচন করা যাবে। ৪. Alt + F4 → অ্যাপ বা উইন্ডো বন্ধ হবে। ৫. Ctrl + P → প্রিন্ট ডায়ালগ বক্স খুলবে (প্রিন্ট করার জন্য)। ⸻ ৬. Ctrl + A → সব ফাইল বা টেক্সট সিলেক্ট হবে। ৭. Ctrl + C → কপি করা যাবে। ৮. Ctrl + V → পেস্ট করা যাবে। ৯. Ctrl + X → কাট করা যাবে। ১০. Ctrl + Z → সর্বশেষ কাজ Undo হবে। ⸻ ১১. Ctrl + Y → Undo করা কাজ Redo হবে। ১২. Windows Key + E → File Explorer খুলবে। ১৩. Windows Key + D → ডেস্কটপ দেখাবে (সব মিনিমাইজ হবে)। ১৪. Ctrl + Shift + Esc → সরাসরি Task Manager খুলবে। ১৫. Windows Key + L → কম্পিউটার লক হবে। ⸻ ১৬. Windows Key + S → সার্চ অপশন চালু হবে। ১৭. Windows Key + R → Run কমান্ড চালু হবে। ১৮. F5 → রিফ্রেশ করবে। ১৯. Alt + Enter → Properties খুলবে। ২০. Ctrl + T → ব্রাউজারে নতুন ট্যাব খু...

70 speaking rules(1~20)

Spoken Rule-1 Feel like – ইচ্ছা করা/আকাঙ্খা প্রকাশ করা প্রয়োগ ক্ষেত্র: ব্যক্তির কোন কিছুর “ইচ্ছা করলে” Feel like ব্যবহার হবে Structure: Subject + feel like + Verb (ing) + Extension. Example ✪ I feel like doing – আমার করতে ইচ্ছা করছে। ✪ I feel like eating – আমার খেতে ইচ্ছা করছে। ✪ I don’t ...