Posts

একটি বছর লিপ-ইয়ার কিনা তা নির্ণয়ের জন্য সি ভাষায় প্রোগ্রাম

Image
#include<stdio.h> #include<conio.h> int main() { clrscr(); Int y; printf("Enter any year:"); scanf("%d",&y); if(y%400==0) printf("\n It is Leap Year."); else if (y%100!=0 && y%4==0) printf("\n It is Leap year."); else printf("\n It in not leap year."); getch(); } Copy code from here: #include #include int main() { Int y; printf("Enter any year:"); scanf("%d",&y); if(y%400==0) printf("\n It is Leap Year."); else if (y%100!=0 && y%4==0) printf("\n It is Leap year."); else printf("\n It in not leap year."); getch(); }

ফারেনহাইট তাপমাত্রাকে সেলসিয়াস স্কেলে প্রকাশের জন্য সি ভাষায় প্রোগ্রাম

Image
#include<stdio.h> #include<conio.h> int main() { float c,f; printf("Enter the Fahrenheit Temperature =  "); scanf("%f",&f); c=((f-32)/9)*5; printf("Celsius Temperature=%f\n",c"); getch(); } Output Enter the Fahrenheit Temperature = 10  [10 ইনপুট দেয়া হয়েছে] Celsius Temperature= 12.222222 Copy Code from here: #include #include Int main() { Clrscr(); float c,f; printf("Enter the Fahrenheit Temperature = "); scanf("%f",&f); c=((f-32)/9)*5; printf("Celsius Temperature=%f\n",c"); getch(); }

একটি ত্রিভুজের ক্ষেত্রফল নির্ণয়ের জন্য সি ভাষায় প্রোগ্রামিং

Image
#include<stdio.h> #include<conio.h> main() { Flaot b,h,a; Printf("Enter the base of the Trinangle:"); scanf("%f",&b); Printf("Enter the height of the Trinangle:"); scanf("%f",&h); a=(b*h)/2; printf("Area of the triangle is = %f\n ",a);  getch(); } Output Enter the base of the triangle: 23 Enter the height of the triangle: 12 Area of the triangle is = 138.00 Copy This code From here: #include #include main() { Flaot b,h,a; Printf("Enter the base of the Trinangle:"); scanf("%f",&b); Printf("Enter the height of the Trinangle:"); scanf("%f",&h); a=(b*h)/2; printf("Area of the triangle is = %f\n ",a); getch(); }

দুটি সংখ্যার যোগফল ও গড় নির্ণয়ের জন্য সি ভাষায় প্রোগ্রাম।

Image
#include<stdio.h> #include<conio.h> void main() { int x,y,sum,avg; clrscr(); printf("Enter the  first number:"); scanf("%d",&x); printf("Enter the second number:"); scanf("%d",&y); sum=x+y; avg=sum/2; printf("sum=%d\n",sum); printf("avg=%d\n",avg) getch(); } Output: Enter the first number: 8 Enter the second number: 2 Sum=10 Avg=5 Copy This Code: #include #include void main() { int x,y,sum,avg; clrscr(); printf("Enter the first number:"); scanf("%d",&x); printf("Enter the second number:"); scanf("%d",&y); sum=x+y; avg=sum/2; printf("sum=%d\n",sum); printf("avg=%d\n",avg) getch(); }

সেলসিয়াস তাপমাত্রা থেকে ফারেনহাইট তাপমাত্রায় রুপান্তরের এলগরিদম ও ফ্লোচার্ট

Image
ধাপ ১। শুরু ধাপ ২।  Celsius এর মান গ্রহন ধাপ ৩। Fahrenheit  = Celsius * 9/5 + 32 ধাপ ৪।  Fahrenheit এর ফলাফল ছাপ ধাপ ৫। শেষ 

ফারেনহাইট থেকে সেলসিয়াস তাপমাত্রায় রুপান্তরের এলগরিদম ও ফ্লোচার্ট

Image
ধাপ ১। শুরু ধাপ ২। ফারেনহাইট    এর মান গ্রহন ধাপ ৩। Celsius = ( 5 / 9 ) * (Fahrenheit- 32 ); ধাপ ৪। ফলাফল প্রদর্শন ধাপ ৫। শেষ

জোড় নাকি বিজোড় সংখ্যা নির্ণয়ের এলগরিদম ও ফ্লোচার্ট

Image
ধাপ ১। শুরু ধাপ ২। ইনপুট A এর মান গ্রহন ধাপ ৩। A  কে ২ দ্বারা ভাগ করলে ভাগশেষ R এর সমান। অর্থাৎ R= ভাগশেষ। ধাপ ৪। R এর মান কি ০ এর সমান?     (ক) R=0 হলে, সংখ্যাটি জোড়।     (খ) R=0 না হলে , সংখ্যাটি বিজোড়। ধাপ ৫। ফলাফল ছাপ। ধাপ ৬। শেষ।