উত্তর:
#include < stdio.h>
int main()
{
int i;
for (i=1; i<=5; i++)
printf("%d \n",i);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i;
for (i=1; i<=5; i++)
printf("%d \n",i);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i=1;
while (i<=5)
{
printf("%d \n",i);
i++;
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i=1;
while (i<=5)
{
printf("%d \n",i);
i++;
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{ int i=1;
do
{
printf("%d \n", i);
i++;
}
while(i<=5);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{ int i=1;
do
{
printf("%d \n", i);
i++;
}
while(i<=5);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i,N;
printf("Enter the Highest number of the series: ");
scanf("%d",&N);
for (i=1; i<=N; i++)
printf("%d \n", i);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i,N;
printf("Enter the Highest number of the series: ");
scanf("%d",&N);
for (i=1; i<=N; i++)
printf("%d \n", i);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
while (i<=N)
{ printf("%d \n",i);
i++;
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
while (i<=N)
{ printf("%d \n",i);
i++;
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
do
{
printf("%d \n",i);
i++;
}
while (i<=N);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
do
{
printf("%d \n",i);
i++;
}
while (i<=N);
return 0;
}
Practice Online
উত্তর: :
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
for (i=2; i<=N; i=i+2)
printf("%d \n", i);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
for (i=2; i<=N; i=i+2)
printf("%d \n", i);
return 0;
}
Practice Online
উত্তর: #include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
i=2;
while (i<=N)
{
printf("%d \n", i);
i=i+2;
}
return 0;
}
Practice Online
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
i=2;
while (i<=N)
{
printf("%d \n", i);
i=i+2;
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
i=2;
do
{
printf("%d \n", i);
i=i+2;
}
while (i<=N);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
i=2;
do
{
printf("%d \n", i);
i=i+2;
}
while (i<=N);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i,N;
printf("Enter the Highest number of the series: ");
scanf("%d",&N);
for (i=1; i<=N; i=i+2)
printf("%d \n", i);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i,N;
printf("Enter the Highest number of the series: ");
scanf("%d",&N);
for (i=1; i<=N; i=i+2)
printf("%d \n", i);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
while (i<=N)
{ printf("%d \n",i);
i=i+2;
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
while (i<=N)
{ printf("%d \n",i);
i=i+2;
}
return 0;
}
Practice Online
উত্তর: :
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
do
{
printf("%d \n",i);
i=i+2;
}
while (i<=N);
return 0;
}
#include < stdio.h>
int main()
{
int N,i=1;
printf("Enter the highest number of the series:");
scanf("%d", &N);
do
{
printf("%d \n",i);
i=i+2;
}
while (i<=N);
return 0;
}
উত্তর:
#include < stdio.h>
#include < math.h>
int main()
{
int a, N, sum;
sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for (a=1; a<=N; a=a+1)
{
sum = sum + a*(a+1);
}
printf("The summation of the series 1 x 2 +2 x 3 + 3 x 4+...+%d x (%d+1) = %d",N,N, sum);
return 0;
}
Practice Online
#include < stdio.h>
#include < math.h>
int main()
{
int a, N, sum;
sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for (a=1; a<=N; a=a+1)
{
sum = sum + a*(a+1);
}
printf("The summation of the series 1 x 2 +2 x 3 + 3 x 4+...+%d x (%d+1) = %d",N,N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
#include < math.h>
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
a=1; sum=0;
while (a<=N)
{
sum = sum + a*(a+1); a=a+1;
}
printf("The summation of the series 1 x 2 +2 x 3 + 3 x 4+...+%d x (%d+1) = %d",N,N, sum);
return 0;
}
Practice Online
#include < stdio.h>
#include < math.h>
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
a=1; sum=0;
while (a<=N)
{
sum = sum + a*(a+1); a=a+1;
}
printf("The summation of the series 1 x 2 +2 x 3 + 3 x 4+...+%d x (%d+1) = %d",N,N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
#include < math.h>
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
a=1; sum=0;
do
{
sum = sum + a*(a+1); a=a+1;
}
while (a<=N);
printf("The summation of the series 1 x 2 +2 x 3 + 3 x 4+...+%d x (%d+1) = %d",N,N, sum);
return 0;
}
Practice Online
#include < stdio.h>
#include < math.h>
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
a=1; sum=0;
do
{
sum = sum + a*(a+1); a=a+1;
}
while (a<=N);
printf("The summation of the series 1 x 2 +2 x 3 + 3 x 4+...+%d x (%d+1) = %d",N,N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum=1;
printf("Enter the last no. of the series is: ");
scanf("%d",&N);
for (i=1; i<=N; i=i+1)
{
sum = sum*i;
}
printf("Summation of the series 1*2*3..%d is : %ld", N, sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum=1;
printf("Enter the last no. of the series is: ");
scanf("%d",&N);
for (i=1; i<=N; i=i+1)
{
sum = sum*i;
}
printf("Summation of the series 1*2*3..%d is : %ld", N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum=1;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=1; sum=1;
while (i<=N)
{
sum = sum*i; i= i+1;
}
printf("The summation of the series 1*2*3 ..%d is: %d", N, sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum=1;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=1; sum=1;
while (i<=N)
{
sum = sum*i; i= i+1;
}
printf("The summation of the series 1*2*3 ..%d is: %d", N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=1; sum=1;
do
{
sum = sum*i; i= i+1;
}
while (i<=N);
printf("The summation of the series 1*2*3..%d = %d", N, sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=1; sum=1;
do
{
sum = sum*i; i= i+1;
}
while (i<=N);
printf("The summation of the series 1*2*3..%d = %d", N, sum);
return 0;
}
Practice Online
উত্তর: : HTML ভাষায় কোড লেখার সুনির্দিষ্ট নিয়ম রীতি HTML Syntax হিসেবে পরিচিত।
উত্তর:
#include < stdio.h>
int main()
{
int n, sum=0, i;
printf("Enter the last number of the series:");
scanf("%d",&n);
for (i=1;i<=n; i=i+1)
{
sum=sum+i;
}
printf("The Summation of the Series is = %d",sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int n, sum=0, i;
printf("Enter the last number of the series:");
scanf("%d",&n);
for (i=1;i<=n; i=i+1)
{
sum=sum+i;
}
printf("The Summation of the Series is = %d",sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum=0; i=0;
printf("Enter the last number of the series:");
scanf("%d",&N);
while(i<=N)
{
sum=sum+i;
i=i+1;
}
printf("Summation of the Series is = %d",sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum=0; i=0;
printf("Enter the last number of the series:");
scanf("%d",&N);
while(i<=N)
{
sum=sum+i;
i=i+1;
}
printf("Summation of the Series is = %d",sum);
return 0;
}
Practice Online
উত্তর:
#include
int main()
{
int i, N, sum=0; i=1;
printf("Enter the last number of the series:");
scanf("%d",&N);
do
{
sum=sum+i; i=i+1;
}
while(i<=N);
printf("Summation of the series is %d", sum);
return 0;
}
Practice Online
#include
int main()
{
int i, N, sum=0; i=1;
printf("Enter the last number of the series:");
scanf("%d",&N);
do
{
sum=sum+i; i=i+1;
}
while(i<=N);
printf("Summation of the series is %d", sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, sum=0;
for(i=1; i<=100; i=i+1)
{
sum = sum+i;
}
printf("The summation of the series 1+2+3 ...100 is %d:",sum );
return 0;
}
#include < stdio.h>
int main()
{
int i, sum=0;
for(i=1; i<=100; i=i+1)
{
sum = sum+i;
}
printf("The summation of the series 1+2+3 ...100 is %d:",sum );
return 0;
}
উত্তর:
#include < stdio.h>
int main()
{
int i, sum=0;i=1;
while(i<=100)
{
sum = sum+i; i=i+1;
}
printf("The summation of the series 1+2+3 ...100 is: %d",sum );
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, sum=0;i=1;
while(i<=100)
{
sum = sum+i; i=i+1;
}
printf("The summation of the series 1+2+3 ...100 is: %d",sum );
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, sum=0;i=1;
do
{
sum = sum+i; i=i+1;
}
while (i<=100);
printf("The summation of the series 1+2+3 ...100 is: %d",sum );
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, sum=0;i=1;
do
{
sum = sum+i; i=i+1;
}
while (i<=100);
printf("The summation of the series 1+2+3 ...100 is: %d",sum );
return 0;
}
Practice Online
উত্তর:
#include< stdio.h>
int main()
{
int n, sum=0, i;
printf("Enter the last number of the series:");
scanf("%d",&n);
for (i=1;i<=n; i=i+1)
{
sum=sum+i;
}
printf("The Summation of the Series is = %d",sum);
return 0;
}
Practice Online
#include< stdio.h>
int main()
{
int n, sum=0, i;
printf("Enter the last number of the series:");
scanf("%d",&n);
for (i=1;i<=n; i=i+1)
{
sum=sum+i;
}
printf("The Summation of the Series is = %d",sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum=0; i=2;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for (i=2; i<=N; i=i+2)
{
sum= sum+i;
}
printf("Summation of the series 2 + 4 + 6 ... %d is %d",N,sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum=0; i=2;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for (i=2; i<=N; i=i+2)
{
sum= sum+i;
}
printf("Summation of the series 2 + 4 + 6 ... %d is %d",N,sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
sum=0; i=2;
while (i<=N)
{
sum=sum+i; i=i+2;
}
printf("The summation of the series 2+4+6...+%d is: %d", N,sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
sum=0; i=2;
while (i<=N)
{
sum=sum+i; i=i+2;
}
printf("The summation of the series 2+4+6...+%d is: %d", N,sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum=0;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
do
{
sum=sum+i; i=i+2;
}
while (i<=N);
printf("The summation of the series 2+4+6 .. %d is: %d",N,sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum=0;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
do
{
sum=sum+i; i=i+2;
}
while (i<=N);
printf("The summation of the series 2+4+6 .. %d is: %d",N,sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
sum=0; i=2;
while (i<=N)
{
sum=sum+i; i=i+2;
}
printf("The summation of the series 2+4+6...+%d is: %d", N,sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
sum=0; i=2;
while (i<=N)
{
sum=sum+i; i=i+2;
}
printf("The summation of the series 2+4+6...+%d is: %d", N,sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
for(i=1; i<=N; i=i+1)
printf("%d \n", i*5);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
for(i=1; i<=N; i=i+1)
printf("%d \n", i*5);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N;
printf("Enter how many times do you want to show the series: ");
scanf("%d", &N);
i=1;
while (i<=N)
{
printf("%d \n", i*5);
i=i+1;
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N;
printf("Enter how many times do you want to show the series: ");
scanf("%d", &N);
i=1;
while (i<=N)
{
printf("%d \n", i*5);
i=i+1;
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N;
printf("Enter how many times do you want to show the series: ");
scanf("%d", &N);
i=1;
do
{
printf("%d \n", i*5);
i=i+1;
}
while (i<=N);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N;
printf("Enter how many times do you want to show the series: ");
scanf("%d", &N);
i=1;
do
{
printf("%d \n", i*5);
i=i+1;
}
while (i<=N);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
char alphabet;
for (alphabet='a'; alphabet<='z'; alphabet++)
printf("%c\t",alphabet);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
char alphabet;
for (alphabet='a'; alphabet<='z'; alphabet++)
printf("%c\t",alphabet);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
char alphabet;
alphabet='a';
while (alphabet <='z')
{
printf("%c \t", alphabet);
alphabet++;
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
char alphabet;
alphabet='a';
while (alphabet <='z')
{
printf("%c \t", alphabet);
alphabet++;
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
char alphabet;
alphabet='a';
do
{
printf("%c \t", alphabet);
alphabet++;
}
while (alphabet<='z');
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
char alphabet;
alphabet='a';
do
{
printf("%c \t", alphabet);
alphabet++;
}
while (alphabet<='z');
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
#include < conio.h>
main()
{
int a, b, Sum;
printf("Enter the Value of a and b:");
scanf("%d%d", &a,&b);
Sum=a+b;
printf("Result of the Summation is %d",Sum);
return 0;
}
Practice Online
#include < stdio.h>
#include < conio.h>
main()
{
int a, b, Sum;
printf("Enter the Value of a and b:");
scanf("%d%d", &a,&b);
Sum=a+b;
printf("Result of the Summation is %d",Sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
#include < conio.h>
main()
{
int a, b,c, Sum;
printf("Enter the Value of a, b, and c:");
scanf("%d %d %d", &a,&b, &c);
Sum=a+b+c;
printf("Result of the Summation is = %d",Sum);
return 0;
}
Practice Online
#include < stdio.h>
#include < conio.h>
main()
{
int a, b,c, Sum;
printf("Enter the Value of a, b, and c:");
scanf("%d %d %d", &a,&b, &c);
Sum=a+b+c;
printf("Result of the Summation is = %d",Sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
main()
{
int x,f,m,Sum;
printf("Enter the Value of x: ");
scanf("%d", &x);
m=x*3; f=m+5;
Sum=x+f+m;
printf("\n Age of Son is: %d", x);
printf("\n Age of Mother is: %d", m);
printf("\n Age of Father is: %d", f);
printf("\n The Total age of the three person is = %d",Sum);
return 0;
}
Practice Online
#include < stdio.h>
main()
{
int x,f,m,Sum;
printf("Enter the Value of x: ");
scanf("%d", &x);
m=x*3; f=m+5;
Sum=x+f+m;
printf("\n Age of Son is: %d", x);
printf("\n Age of Mother is: %d", m);
printf("\n Age of Father is: %d", f);
printf("\n The Total age of the three person is = %d",Sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int Age;
printf("Enter your Age: Between 1- 19 ");
scanf("%d", &Age);
if (Age>0 && Age<12)
printf("You are a Child");
if (Age>12 && Age<19)
printf ("You are a teen ager");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int Age;
printf("Enter your Age: Between 1- 19 ");
scanf("%d", &Age);
if (Age>0 && Age<12)
printf("You are a Child");
if (Age>12 && Age<19)
printf ("You are a teen ager");
return 0;
}
Practice Online
উত্তর: : আপলোড
উত্তর:
#include < stdio.h>
int main()
{
int a,b,c,sum, avg;
printf("Enter the value of a, b, & c : ");
scanf("%d %d %d", &a, &b, &c);
sum = a+b+c;
avg=sum/3;
printf("The Average is = %d\n",avg);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a,b,c,sum, avg;
printf("Enter the value of a, b, & c : ");
scanf("%d %d %d", &a, &b, &c);
sum = a+b+c;
avg=sum/3;
printf("The Average is = %d\n",avg);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, n;
char text[50];
printf("Enter the text: ");
scanf("%[^\n]",text); // with advanced specifier
printf("How many times display ?");
scanf("%d", &n);
for(i=1; i<=n; i++)
printf("%s \n", text);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, n;
char text[50];
printf("Enter the text: ");
scanf("%[^\n]",text); // with advanced specifier
printf("How many times display ?");
scanf("%d", &n);
for(i=1; i<=n; i++)
printf("%s \n", text);
return 0;
}
Practice Online
উত্তর: : আপলোড
উত্তর:
#include < stdio.h>
int main()
{
int a,b,c;
printf("Enter the three No. ");
scanf("%d %d %d", &a, &b, &c);
if ((a>b) && (a>c))
printf("The largest Number is = %d",a);
else if ((b>a) && (b>c))
printf("The largest Number is = %d",b);
else printf("The largest Number is = %d",c);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a,b,c;
printf("Enter the three No. ");
scanf("%d %d %d", &a, &b, &c);
if ((a>b) && (a>c))
printf("The largest Number is = %d",a);
else if ((b>a) && (b>c))
printf("The largest Number is = %d",b);
else printf("The largest Number is = %d",c);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int a, b;
printf("Enter the Two Number: ");
scanf("%d %d", &a, &b);
if (a>b)
printf("\n The largest No. is = %d", a);
else
printf("\n The largest No. is = %d", b);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a, b;
printf("Enter the Two Number: ");
scanf("%d %d", &a, &b);
if (a>b)
printf("\n The largest No. is = %d", a);
else
printf("\n The largest No. is = %d", b);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int x;
printf("Enter the value of X: ");
scanf("%d", &x);
switch(x){
case 1:
printf("You Have Entered Value 1 ");
break;
case 2:
printf("You Have Entered Value 2 ");
break;
default:
printf("Input Value is other than 1,& 2");
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int x;
printf("Enter the value of X: ");
scanf("%d", &x);
switch(x){
case 1:
printf("You Have Entered Value 1 ");
break;
case 2:
printf("You Have Entered Value 2 ");
break;
default:
printf("Input Value is other than 1,& 2");
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i=1, N;
printf("Enter the no. between 1 to 25: ");
scanf("%d", &N);
while (i<=N) {
printf("%d \n", i);
i= i+1;
if(i>25){
break;
}
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i=1, N;
printf("Enter the no. between 1 to 25: ");
scanf("%d", &N);
while (i<=N) {
printf("%d \n", i);
i= i+1;
if(i>25){
break;
}
}
return 0;
}
Practice Online
উত্তর: : আপলোড
উত্তর: : আপলোড
উত্তর:
#include < stdio.h>
int main()
{
int C,F;
printf("Enter the Celcius temperature : ");
scanf("%d", &C);
F=(C*9)/5+32;
//FC9D5+32
printf("Fahrenheit temperate = %d\n",F);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int C,F;
printf("Enter the Celcius temperature : ");
scanf("%d", &C);
F=(C*9)/5+32;
//FC9D5+32
printf("Fahrenheit temperate = %d\n",F);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
float r, area;
printf("Enter the value of r means Radius : ");
scanf("%f", &r);
area=3.14*r*r;
printf("Area of the Circle is %.2f", area);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
float r, area;
printf("Enter the value of r means Radius : ");
scanf("%f", &r);
area=3.14*r*r;
printf("Area of the Circle is %.2f", area);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
for (i=10; i<=N; i=i+1)
{
if (i==15 || i== 20)
continue;
printf("%d \t", i);
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the value of N: ");
scanf("%d", &N);
for (i=10; i<=N; i=i+1)
{
if (i==15 || i== 20)
continue;
printf("%d \t", i);
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int a;
printf("Enter the Decimal No. ");
scanf("%d",&a);
printf("\n The Octal No. is %o",a);
printf("\n The Hexadecimal No. is %x",a);
printf("\n Thank You");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a;
printf("Enter the Decimal No. ");
scanf("%d",&a);
printf("\n The Octal No. is %o",a);
printf("\n The Hexadecimal No. is %x",a);
printf("\n Thank You");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int a;
printf("Enter The No.");
scanf("%d",&a);
if (a%2==0)
printf("The No. %d is Even", a);
else
printf("The No. %d is Odd",a);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a;
printf("Enter The No.");
scanf("%d",&a);
if (a%2==0)
printf("The No. %d is Even", a);
else
printf("The No. %d is Odd",a);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, fact;
printf("Enter any Integer No.: ");
scanf("%d", &N);
i=1; fact=1;
do{
fact = fact*i; i= i+1;
}
while (i<=N);
printf("The Factorial value of %d is : %d", N, fact);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, fact;
printf("Enter any Integer No.: ");
scanf("%d", &N);
i=1; fact=1;
do{
fact = fact*i; i= i+1;
}
while (i<=N);
printf("The Factorial value of %d is : %d", N, fact);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, fact;
printf("Enter any Integer No.: ");
scanf("%d",&N);
i=1; fact=1;
while (i<=N)
{
fact = fact*i; i= i+1;
}
printf("The Factorial value of %d is : %d", N, fact);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, fact;
printf("Enter any Integer No.: ");
scanf("%d",&N);
i=1; fact=1;
while (i<=N)
{
fact = fact*i; i= i+1;
}
printf("The Factorial value of %d is : %d", N, fact);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, fact=1;
printf("Enter any Integer No.: ");
scanf("%d",&N);
for (i=1; i<=N; i=i+1)
{
fact = fact*i;
}
printf("The Factorial value of %d is : %d", N, fact);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, fact=1;
printf("Enter any Integer No.: ");
scanf("%d",&N);
for (i=1; i<=N; i=i+1)
{
fact = fact*i;
}
printf("The Factorial value of %d is : %d", N, fact);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int F, C;
printf("Enter the Farhenheight Value: ");
scanf("%d",&F);
C = 5*(F-32)/9;
printf("The Celcious temperature is: %d\n ",C);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int F, C;
printf("Enter the Farhenheight Value: ");
scanf("%d",&F);
C = 5*(F-32)/9;
printf("The Celcious temperature is: %d\n ",C);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, n, x, y, z;
printf("Enter the Number of Terms: ");
scanf("%d", &n);
x=1; y=1;
for (i=1; i<=n; i= i+1)
{
printf("%d ", x);
z=x+y;
x=y;
y=z;
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, n, x, y, z;
printf("Enter the Number of Terms: ");
scanf("%d", &n);
x=1; y=1;
for (i=1; i<=n; i= i+1)
{
printf("%d ", x);
z=x+y;
x=y;
y=z;
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int n1, n2, num1, num2, rem, gcd, lcm;
printf("Enter two Numbers where Number 1> Number 2: ");
scanf("%d %d", &num1, &num2);
n1=num1, n2=num2;
rem=n1%n2; gcd=n1;
while(n2!=0)
{
rem=n1%n2,
n1=n2,
n2=rem;
}
printf("GCD = %d",n1);
lcm=(num1*num2)/n1;
printf("\n LCM = %d",lcm);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int n1, n2, num1, num2, rem, gcd, lcm;
printf("Enter two Numbers where Number 1> Number 2: ");
scanf("%d %d", &num1, &num2);
n1=num1, n2=num2;
rem=n1%n2; gcd=n1;
while(n2!=0)
{
rem=n1%n2,
n1=n2,
n2=rem;
}
printf("GCD = %d",n1);
lcm=(num1*num2)/n1;
printf("\n LCM = %d",lcm);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int n1, n2, num1, num2, rem, gcd, lcm;
printf("Enter the two Number where Number 1> Number 2: ");
scanf("%d %d", &num1, &num2);
n1=num1, n2=num2, gcd= n1;
do {
rem= n1 % n2;
n1=n2; n2=rem;
}
while(n2!= 0);
printf("The GCD is %d \n", n1);
lcm = (num1 * num2)/n1;
printf("The LCM is %d \n", lcm);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int n1, n2, num1, num2, rem, gcd, lcm;
printf("Enter the two Number where Number 1> Number 2: ");
scanf("%d %d", &num1, &num2);
n1=num1, n2=num2, gcd= n1;
do {
rem= n1 % n2;
n1=n2; n2=rem;
}
while(n2!= 0);
printf("The GCD is %d \n", n1);
lcm = (num1 * num2)/n1;
printf("The LCM is %d \n", lcm);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
printf("Hello World \n");
goto A;
printf("How are you?");
printf("Are you Okey?");
A:
printf("Hope you are fine");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
printf("Hello World \n");
goto A;
printf("How are you?");
printf("Are you Okey?");
A:
printf("Hope you are fine");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=10;
star:
printf("%d ",i);
i= i+10;
if(i<=N)
goto star;
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=10;
star:
printf("%d ",i);
i= i+10;
if(i<=N)
goto star;
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int a;
printf("Enter the number: ");
scanf("%d",&a);
if ((a>=80)&&(a<100))
printf("Your Grade is A+");
else if ((a>=70)&& (a<80))
printf("Your Grade is A");
else if ((a>=60)&& (a<70))
printf("Your Grade is A-");
else if ((a>=50)&& (a<60))
printf("Your Grade is B");
else if ((a>=40)&& (a<50))
printf("Your Grade is C");
else if ((a>=33)&& (a<40))
printf("Your Grade is D");
else printf("Your Grade is F");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a;
printf("Enter the number: ");
scanf("%d",&a);
if ((a>=80)&&(a<100))
printf("Your Grade is A+");
else if ((a>=70)&& (a<80))
printf("Your Grade is A");
else if ((a>=60)&& (a<70))
printf("Your Grade is A-");
else if ((a>=50)&& (a<60))
printf("Your Grade is B");
else if ((a>=40)&& (a<50))
printf("Your Grade is C");
else if ((a>=33)&& (a<40))
printf("Your Grade is D");
else printf("Your Grade is F");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int a;
printf("Enter the Hexadecimal No.");
scanf("%x",&a);
printf("The Decimal No. is : %d\n", a);
printf("The Octal No. is %o\n", a);
printf("Thank You");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a;
printf("Enter the Hexadecimal No.");
scanf("%x",&a);
printf("The Decimal No. is : %d\n", a);
printf("The Octal No. is %o\n", a);
printf("Thank You");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int y;
printf("Enter a Year");
scanf("%d", &y);
if ( y%400 == 0 || (y%100)!=0 && (y%4) == 0)
printf("%d is a Leap Year.", y);
else printf("%d is not a Leap Year.", y);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int y;
printf("Enter a Year");
scanf("%d", &y);
if ( y%400 == 0 || (y%100)!=0 && (y%4) == 0)
printf("%d is a Leap Year.", y);
else printf("%d is not a Leap Year.", y);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
char ch;
printf("Enter the letter: ");
scanf("%c", &ch);
if (ch>='A' && ch<='Z')
printf("\n You entered a Capital letter %c", ch);
if (ch>='a' && ch<='z')
printf("\n You entered a Small letter %c", ch);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
char ch;
printf("Enter the letter: ");
scanf("%c", &ch);
if (ch>='A' && ch<='Z')
printf("\n You entered a Capital letter %c", ch);
if (ch>='a' && ch<='z')
printf("\n You entered a Small letter %c", ch);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int s[10], n,i, max;
printf("How Many number ? ");
scanf("%d", &n);
printf("Enter %d integer No.\n", n);
for (i=0; i
scanf("%d", &s[i]);
max= s[0];
for (i=1; i
{
if(s[i]>max)
max= s[i];
else
max=max;
}
printf("%d is the maximum of given numbers", max);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int s[10], n,i, max;
printf("How Many number ? ");
scanf("%d", &n);
printf("Enter %d integer No.\n", n);
for (i=0; i
max= s[0];
for (i=1; i
max= s[i];
else
max=max;
}
printf("%d is the maximum of given numbers", max);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
float x, y, one,off, sum;
printf("\n Enter the value of one net usage minute ");
scanf("%f", &x);
printf("\n Enter the value of off net usage minute ");
scanf("%f", &y);
one=x*.35; off=y*1.25;
sum=one+off;
printf("\n Total usage one net is %.2f",x);
printf("\n Total usage off net is %.2f",y);
printf("\n Total mobile bill is %.2f Taka ", sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
float x, y, one,off, sum;
printf("\n Enter the value of one net usage minute ");
scanf("%f", &x);
printf("\n Enter the value of off net usage minute ");
scanf("%f", &y);
one=x*.35; off=y*1.25;
sum=one+off;
printf("\n Total usage one net is %.2f",x);
printf("\n Total usage off net is %.2f",y);
printf("\n Total mobile bill is %.2f Taka ", sum);
return 0;
}
Practice Online
উত্তর:
#include< stdio.h>
int main()
{
char ch;
printf("Enter a number (o-5)");
scanf("%c",&ch);
switch(ch){
case'0':
printf("\n Zero");
break;
case'1':
printf("\n One ");
break;
case'2':
printf("\n Two");
break;
case'3':
printf("\n Three");
break;
case'4':
printf("\n Four");
break;
case'5':
printf("\n Five");
break;
default:
printf("\n you do not enter o-5");
}
return 0;
}
Practice Online
#include< stdio.h>
int main()
{
char ch;
printf("Enter a number (o-5)");
scanf("%c",&ch);
switch(ch){
case'0':
printf("\n Zero");
break;
case'1':
printf("\n One ");
break;
case'2':
printf("\n Two");
break;
case'3':
printf("\n Three");
break;
case'4':
printf("\n Four");
break;
case'5':
printf("\n Five");
break;
default:
printf("\n you do not enter o-5");
}
return 0;
}
Practice Online
উত্তর:
#include< stdio.h>
int main()
{
int a;
printf("Enter the Octal No.");
scanf("%o",&a);
printf("The Decimal No. is %d\n",a);
printf("The Hexadecimal No. is %x\n", a);
printf("Thank you \n");
return 0;
}
Practice Online
#include< stdio.h>
int main()
{
int a;
printf("Enter the Octal No.");
scanf("%o",&a);
printf("The Decimal No. is %d\n",a);
printf("The Hexadecimal No. is %x\n", a);
printf("Thank you \n");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, j;
printf("Enter the highest No. of the pattern : ");
scanf("%d", &N);
for (i=1; i<=N; i=i+1)
{ for (j=1; j<=i; j = j+1 )
printf("*");
printf("\n");
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, j;
printf("Enter the highest No. of the pattern : ");
scanf("%d", &N);
for (i=1; i<=N; i=i+1)
{ for (j=1; j<=i; j = j+1 )
printf("*");
printf("\n");
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, j;
printf("Enter the highest No. of the pattern : ");
scanf("%d", &N);
for (i=1; i<=N; i=i+1)
{
for (j=1; j<=i; j = j+1 )
printf("%d ", j);
printf("\n");
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, j;
printf("Enter the highest No. of the pattern : ");
scanf("%d", &N);
for (i=1; i<=N; i=i+1)
{
for (j=1; j<=i; j = j+1 )
printf("%d ", j);
printf("\n");
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, j;
printf("Enter the highest value of the Pattern is: ");
scanf("%d", &N);
for(i=N; i>=1; i = i-1)
{
for (j=1; j<=i; j=j+1)
printf("%d", j);
printf(" \n");
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, j;
printf("Enter the highest value of the Pattern is: ");
scanf("%d", &N);
for(i=N; i>=1; i = i-1)
{
for (j=1; j<=i; j=j+1)
printf("%d", j);
printf(" \n");
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int a;
printf("Entter any Number: ");
scanf("%d", &a);
if(a>0)
printf("The No. %d is Positive",a);
if(a<0)
printf("The No. %d is Negative",a);
if(a==0)
printf("The No. %d is 0",a);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a;
printf("Entter any Number: ");
scanf("%d", &a);
if(a>0)
printf("The No. %d is Positive",a);
if(a<0)
printf("The No. %d is Negative",a);
if(a==0)
printf("The No. %d is 0",a);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=1; sum=0;
do
{
sum = sum+i*i; i= i+1;
}
while (i<=N);
printf("The summation of the series pow,2 1+2+3..%d is: %d", N, sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
i=1; sum=0;
do
{
sum = sum+i*i; i= i+1;
}
while (i<=N);
printf("The summation of the series pow,2 1+2+3..%d is: %d", N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i,N,sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for(i=1; i<=N;i=i+1)
{
sum = sum+i*i;
}
printf("The summation of the series pow(1+2+3 ...%d) is: %d",N,sum );
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i,N,sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for(i=1; i<=N;i=i+1)
{
sum = sum+i*i;
}
printf("The summation of the series pow(1+2+3 ...%d) is: %d",N,sum );
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i,N,sum=0; i=1;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
while (i<=N)
{
sum=sum+i*i; i=i+1;
}
printf("The result of the series pow 1+2+3 ...%d is: %d",N, sum);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i,N,sum=0; i=1;
printf("Enter the last no. of the series: ");
scanf("%d",&N);
while (i<=N)
{
sum=sum+i*i; i=i+1;
}
printf("The result of the series pow 1+2+3 ...%d is: %d",N, sum);
return 0;
}
Practice Online
উত্তর: : আপলোড
উত্তর:
#include < stdio.h>
#include
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
sum=0; a=1;
do
{
sum = sum + pow(a,a); a=a+1;
}
while (a<=N);
printf("The summation of the series (pow 1,1 +2,2 +3,3+... +%d ) = %d",N, sum);
return 0;
}
Practice Online
#include < stdio.h>
#include
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
sum=0; a=1;
do
{
sum = sum + pow(a,a); a=a+1;
}
while (a<=N);
printf("The summation of the series (pow 1,1 +2,2 +3,3+... +%d ) = %d",N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
#include
int main()
{
int a, N, sum;
sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for (a=1; a<=N; a=a+1)
{
sum = sum+pow(a,a);
}
printf("The summation of the series (pow 1,1+ 2,2+ 3,3+...+%d ) = %d",N, sum);
return 0;
}
Practice Online
#include < stdio.h>
#include
int main()
{
int a, N, sum;
sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for (a=1; a<=N; a=a+1)
{
sum = sum+pow(a,a);
}
printf("The summation of the series (pow 1,1+ 2,2+ 3,3+...+%d ) = %d",N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
#include
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
sum=0; a=1;
while (a<=N)
{
sum = sum+pow(a,a); a=a+1;
}
printf("The summation of the series (pow 1,1+ 2,2+ 3,3+...+%d ) = %d",N, sum);
return 0;
}
Practice Online
#include < stdio.h>
#include
int main()
{
int a, N, sum;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
sum=0; a=1;
while (a<=N)
{
sum = sum+pow(a,a); a=a+1;
}
printf("The summation of the series (pow 1,1+ 2,2+ 3,3+...+%d ) = %d",N, sum);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i,N,sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for(i=1; i<=N;i=i+1)
{
sum = sum+i*i;
}
printf("The summation of the series pow(1+2+3 ...%d) is: %d",N,sum );
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i,N,sum=0;
printf("Enter the last no. of the series: ");
scanf("%d", &N);
for(i=1; i<=N;i=i+1)
{
sum = sum+i*i;
}
printf("The summation of the series pow(1+2+3 ...%d) is: %d",N,sum );
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, N, d;
int isprime;
printf("Enter the highest range: ");
scanf("%d", &N);
printf("Series of the Prime number upto %d is:\n", N);
for(i=2; i<=N; i++)
{
isprime=1;
for(d=2; d if(i%d ==0)
isprime=0;
if(isprime!=0)
printf("%d ", i);
}
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, N, d;
int isprime;
printf("Enter the highest range: ");
scanf("%d", &N);
printf("Series of the Prime number upto %d is:\n", N);
for(i=2; i<=N; i++)
{
isprime=1;
for(d=2; d if(i%d ==0)
isprime=0;
if(isprime!=0)
printf("%d ", i);
}
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int n, c=2;
printf("Enter the number to check if it is Prime: \n");
scanf("%d", &n);
for (c=2; c<=n-1; c++)
{
if(n%c == 0)
{
printf("%d is not prime number.\n",n);
break;
}
}
if (c==n)
printf("%d is prime number. \n",n);
if (n<2)
printf("%d is not prime number.\n", n);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int n, c=2;
printf("Enter the number to check if it is Prime: \n");
scanf("%d", &n);
for (c=2; c<=n-1; c++)
{
if(n%c == 0)
{
printf("%d is not prime number.\n",n);
break;
}
}
if (c==n)
printf("%d is prime number. \n",n);
if (n<2)
printf("%d is not prime number.\n", n);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, n;
printf("How many times display ?");
scanf("%d", &n);
for(i=1; i<=n; i++)
printf("Bangladesh \n");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, n;
printf("How many times display ?");
scanf("%d", &n);
for(i=1; i<=n; i++)
printf("Bangladesh \n");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, n;
char text[50];
printf("Enter the text: ");
scanf("%[^\n]", &text);
printf("Enter how many times: ");
scanf("%d",&n );
for (i=1; i<=n; i++)
printf("%s\n", text);
printf("\nThanks a lot, Have a good day ");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, n;
char text[50];
printf("Enter the text: ");
scanf("%[^\n]", &text);
printf("Enter how many times: ");
scanf("%d",&n );
for (i=1; i<=n; i++)
printf("%s\n", text);
printf("\nThanks a lot, Have a good day ");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int a,b,c;
printf("Enter the three no. , , , ");
scanf("%d %d %d", &a, &b, &c);
if ((a printf("The Smallest no. is = %d",a);
else if((b printf("The Smallest no. is = %d",b);
else ("The Smallest no. is = %d",c);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int a,b,c;
printf("Enter the three no. , , , ");
scanf("%d %d %d", &a, &b, &c);
if ((a printf("The Smallest no. is = %d",a);
else if((b printf("The Smallest no. is = %d",b);
else ("The Smallest no. is = %d",c);
return 0;
}
Practice Online
উত্তর: #include < stdio.h>
int main()
{
int roll;
printf("Enter Roll Number = ");
scanf("%d", &roll);
if(roll>=1 && roll<=30)
printf("Roll %d is in group A. \n", roll);
else if(roll>=31 && roll<=60)
printf("Roll %d is in group B. \n", roll);
else if(roll>=61 && roll<=100)
printf("Roll %d is in group C. \n", roll);
else printf("Roll %d is Invalid. \n", roll);
return 0;
}
Practice Online
int main()
{
int roll;
printf("Enter Roll Number = ");
scanf("%d", &roll);
if(roll>=1 && roll<=30)
printf("Roll %d is in group A. \n", roll);
else if(roll>=31 && roll<=60)
printf("Roll %d is in group B. \n", roll);
else if(roll>=61 && roll<=100)
printf("Roll %d is in group C. \n", roll);
else printf("Roll %d is Invalid. \n", roll);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
int i, n;
char text[50];
printf("Enter the text: ");
scanf("%[^\n]", &text);
printf("Enter how many times: ");
scanf("%d",&n );
for (i=1; i<=n; i++)
printf("%s\n", text);
printf("\nThanks a lot, Have a good day ");
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
int i, n;
char text[50];
printf("Enter the text: ");
scanf("%[^\n]", &text);
printf("Enter how many times: ");
scanf("%d",&n );
for (i=1; i<=n; i++)
printf("%s\n", text);
printf("\nThanks a lot, Have a good day ");
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
#include
int main()
{
float a, b, c, s, area;
printf("Enter the First Arm: ");
scanf("%f", &a);
printf("Enter the Second Arm: ");
scanf("%f", &b);
printf("Enter the Third Arm: ");
scanf("%f", &c);
s=(a+b+c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf("Area of the Triangel is %.2f", area);
return 0;
}
Practice Online
#include < stdio.h>
#include
int main()
{
float a, b, c, s, area;
printf("Enter the First Arm: ");
scanf("%f", &a);
printf("Enter the Second Arm: ");
scanf("%f", &b);
printf("Enter the Third Arm: ");
scanf("%f", &c);
s=(a+b+c)/2;
area=sqrt(s*(s-a)*(s-b)*(s-c));
printf("Area of the Triangel is %.2f", area);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main()
{
float b, h, area;
printf("Enter the value of Base: ");
scanf("%f", &b);
printf("Enter the value of Height: ");
scanf("%f", &h);
area=(b*h)/2;
printf("Area of the Triangle is %.2f", area);
return 0;
}
Practice Online
#include < stdio.h>
int main()
{
float b, h, area;
printf("Enter the value of Base: ");
scanf("%f", &b);
printf("Enter the value of Height: ");
scanf("%f", &h);
area=(b*h)/2;
printf("Area of the Triangle is %.2f", area);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main ()
{
char ch;
printf("Enter a character: ");
scanf("%c", &ch);
if (ch=='A'|| ch=='a' || ch=='E'||ch=='e'|| ch=='I' || ch=='i' || ch=='O'|| ch=='o' || ch=='U' ||ch=='u')
printf("\n %c is a Vowel", ch);
else printf(" \n %c is not a Vowel", ch);
return 0;
}
Practice Online
#include < stdio.h>
int main ()
{
char ch;
printf("Enter a character: ");
scanf("%c", &ch);
if (ch=='A'|| ch=='a' || ch=='E'||ch=='e'|| ch=='I' || ch=='i' || ch=='O'|| ch=='o' || ch=='U' ||ch=='u')
printf("\n %c is a Vowel", ch);
else printf(" \n %c is not a Vowel", ch);
return 0;
}
Practice Online
উত্তর:
#include < stdio.h>
int main ()
{
char ch;
printf("Enter a character: ");
scanf("%c", &ch);
switch (ch)
{
case 'A':
case 'a':
case 'E':
case 'e':
case 'I':
case 'i':
case 'O':
case 'o':
case 'U':
case 'u':
printf("\n %c is a Vowel", ch);
break;
default: printf(" \n %c is not a Vowel", ch);
}
return 0;
}
Practice Online
#include < stdio.h>
int main ()
{
char ch;
printf("Enter a character: ");
scanf("%c", &ch);
switch (ch)
{
case 'A':
case 'a':
case 'E':
case 'e':
case 'I':
case 'i':
case 'O':
case 'o':
case 'U':
case 'u':
printf("\n %c is a Vowel", ch);
break;
default: printf(" \n %c is not a Vowel", ch);
}
return 0;
}
Practice Online


Comments