"""এইচএসসি পরীক্ষা ২০১৯ ইং 'তথ্য ও
যোগাযোগ প্রযুক্তি' - পঞ্চম অধ্যায়ের সি-
প্রোগ্রামিং যেগুলো প্রায় ১০০% পরীক্ষায়
আসে....!!!
২.১ ত্রিভূজের ক্ষেত্রফল নির্ণয়ের জন্য
প্রোগ্রাম লিখ।
প্রোগ্রাম কোড:
# 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();
}
Auto paragraph Facebook/Computer/Mobile phone/Internet/Television ( এই গুলার যে কোন একটা .......... দেওয়া জায়গা গুলাতে বসাতে হবে ) ..............is one of the greatest invention of modern science. It has made our life easy and comfortable. We use it in our daily life. We cannot think of our day without.......... . We can communicate with anyone of anywhere of the world by using.......... . It has made the word smaller. We can share our feelings, liking and disliking’s with others using............. . Nowadays......... has become a great medium of learning. People can learn many things using........ sitting at home. It is a great source of entertainment also. We can watch videos music news sports etc through.......... .we need not to go to stadium. Inspire of having so many good sides it has some bad sides also. It is harmful for our body. Sometimes students become addicted to it. At last it can be said that.......... is a ...
Comments
Post a Comment