"""এইচএসসি পরীক্ষা ২০১৯ ইং 'তথ্য ও
যোগাযোগ প্রযুক্তি' - পঞ্চম অধ্যায়ের সি-
প্রোগ্রামিং যেগুলো প্রায় ১০০% পরীক্ষায়
আসে....!!!
২.১ ত্রিভূজের ক্ষেত্রফল নির্ণয়ের জন্য
প্রোগ্রাম লিখ।
প্রোগ্রাম কোড:
# 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();
}
Transformation Worksheet-5.0 1. Read the text and change the sentences as directed: [Dhaka Board-2019] You must have heard the name of Bayazid Bostami. (a) He was one of the greatest saints of Islam. (positive) One night he was learning his lessons. (b) At that time his mother asked him for a glass of water. (passive) (c) There was no drinking water in the house, so he went out to fetch it. (complex) (d) When he came back, he found his mother sleeping. (compound) Then he passed the whole night standing with a glass of water beside his mother. (e) He showed a great love and respect to his mother. (exclamatory) 2. Read the following sentences and change them as directed in the bracket. [Rajshahi Board-2019] (a) Tell me your age. (Complex) (b) Some poets are at least as great as Tennyson. (Superlative) (c) What though the field be lost! (Assertive) (d) My watch was lost. (Active) (e) He confessed that he was guilty. (Simple) 3. Read the text and transform the sentences as dire...
Comments
Post a Comment