Welcome to Onlinetunes24 .....
We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.
This is default featured post 1 title
We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.
This is default featured post 2 title
We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.
This is default featured post 3 title
We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.
This is default featured post 4 title
We are committed to become your long-term, trusted partner. Our priority is not only to provide professional services and solutions but to become your IT vendor dedicated to meet your needs today and support your growing business needs tomorrow.
ফাংশন কি F1 থেকে F12
দ্রুত ছড়াচ্ছে বিবোন ভাইরাস!
হ্যাকিংয়ের শিকার অ্যাপল
Write a program using Standard Division
Program:
Find out the maximum value of an array.
Program:
#include<stdio.h>
main()
{
int n, i, max, x[50], p, c=0;
printf("Enter number: N= ");
scanf("%d", &n);
for(i=0; i<n; i++)
{
printf("Enter number for [id %d]= ",i);
scanf("%d", &x[i]);
}
max=x[0];
p=0;
for(i=0; i<n; i++)
{
if(x[i]>max)
{
max=x[i];
p=i;
}
if(x[i]==max)
c++;
}
/*
for(i=0; i<n; i++)
{
if(x[i]==max)
c++;
}
*/
printf("Maximum number is=%d \n Position=%d", max,p);
printf("\n Total max=%d", c);
}
Find out the range of marks number of N students
Program:
#include<stdio.h>
int main()
{
int n, i, m, a[100], max, min;
while(scanf("%d", &n)==1){
//printf("How many students = ");
//scanf("%d", &n);
for(i=0; i<n; i++)
{
printf("Enter mark for [id %d]", i);
scanf("%d", &a[i]);
}
max=a[0];
min=a[0];
for(i=0; i<n; i++)
{
if(a[i]>max)
max=a[i];
if(a[i]<min)
min=a[i];
}
printf("Range %d to %d", min, max);
}
return 0;
}
Write a program using following equation : 1+ 2/2!+3 /3!+4 /4!+⋯
Program:
#include<stdio.h>
#include<math.h>
main()
{
int n, i;
float x,sum=0,y;
printf("Enter N = ");
scanf("%d", &n);
printf("Enter X = ");
scanf("%f", &x);
y=(x-1)/x;
for(i=2; i<=n; i++)
{
sum=sum+(pow(y,i)*.5);
}
printf("Sum=%f", sum+y);
}
Write a program for up and down item from matrix diagonal element.
Program:
#include<stdio.h>
main()
{
int n, i, j, x[10][10];
printf("Enter number =");
scanf("%d", &n);
for(i=0; i<n; i++)
{
for(j=0; j<n; j++)
{
printf("Enter value for [%d][%d]=", i,j);
scanf("%d", & x[i][j]);
}
}
for(i=0; i<n; i++)
{
for(j=0; j<n; j++)
{
if(j>i)
printf("\n up element %d", x[i][j]);
else if (j<i)
printf("\n down element %d", x[i][j]);
}
}
}
Write a program for matrix diagonal element.
Program:
#include<stdio.h>
main()
{
int n, i, j, x[10][10];
printf("Enter number =");
scanf("%d", &n);
for(i=0; i<n; i++)
{
for(j=0; j<n; j++)
{
printf("Enter value for [%d][%d]=", i,j);
scanf("%d", & x[i][j]);
}
}
for(i=0; i<n; i++)
{
for(j=0; j<n; j++)
{
if(i==j)
printf("\t %d", x[i][j]);
}
}
}
Increment output value
Program:
#include<stdio.h>
main()
{
int n, x[50],j=0,i=0, y;
printf("Enter your value = ");
scanf("%d", &n);
while (n!=0)
{
y=n%10;
y++;
x[i]=y;
i++;
n=n/10;
}
for(j=i-1; j>=0; j--)
{
if (x[j]==10)
printf("0");
else
printf("%d", x[j]);
}
}
Revers sumission
Program:
#include<stdio.h>
main()
{
int n,x,sum=0,c=0;
printf("Enter your value = ");
scanf("%d", &n);
while (n!=0)
{
x=n%10;
printf("\t%d",x);
sum=sum+x;
n=n/10;
c++;
}
printf("\nAre Sumission is = %d", sum);
printf("\nTotal count = %d", c);
}
Revers program for integer values.
Program:
#include<stdio.h>
main()
{
int n,x;
printf("Enter your value = ");
scanf("%d", &n);
while (n!=0)
{
x=n%10;
printf("%d", x);
n=n/10;
}
}
Start Display
*
* *
* * *
* * * *
* * * * *
Program:
#include<stdio.h>
main()
{
int n, i, j;
printf("How many step =");
scanf("%d", &n);
for(i=1; i<=n; i++)
{
printf("\n");
for(j=0; j<=i; j++)
printf("*");
}
}
Write a program using binary search algorith
Program:
#include<stdio.h>
main()
{
int x[100], beg, end, mid, item, loc, n, i;
printf("How many number =");
scanf("%d", &n);
for(i=1; i<=n; i++)
{
printf("X[%d]=",i);
scanf("%d", &x[i-1]);
}
printf("\n Put the number that you want to search = ");
scanf("%d", &item);
beg=0;
end=n-1;
mid=int((beg+end)/2);
while(beg<=end && x[mid]!=item)
{
if(item<x[mid])
end=mid-1;
else
beg=mid+1;
mid=int((beg+end)/2);
}
if(x[mid]==item)
printf("Item found");
else
printf("Item not found");
}
Write a program using bubol sort algorith.
Program:
#include<stdio.h>
main()
{
int data[10], pot, k, ptr, n;
printf("How many number =");
scanf("%d", &n);
for(k=1; k<=n; k++)
{
printf("Data[%d]=",k);
scanf("%d", &data[k-1]);
}
for(k=1; k<=n-1; k++)
{
ptr=1;
while(ptr<=n-k)
{
if(data[ptr-1]>data[ptr])
{
pot=data[ptr];
data[ptr]=data[ptr-1];
data[ptr-1]=pot;
}
ptr=ptr+1;
}
}
for(k=1; k<=n; k++)
printf("Data[%d]=%d\n", k, data[k-1]);
}
একটি array এর মাধ্যমে average বের করে কোন কোন সংখ্যা গুলো average থেকে ছোট তা বের করার জন্য প্রোগ্রাম লিখ।
Program:
#include <stdio.h>
main () {
int n, i, sum=0, x[50] ;
float avg;
printf ("Enter your number : =");
scanf("%d", &n);
for (i=0; i<n; i++){
printf ("enter value for [id%d]=", i);
scanf ("%d", &x[i]);
sum=sum+x[i];
}
avg = sum/n;
printf("average number =%d", avg);
for (i=0; i<n; i++){
if (x[i]<avg)
prinft("Small number are = %", x[i]);
}
}
Find out the number of an array.
Program:
#include<stdio.h>
main()
{
int n, i, search, x[10], a;
printf("Enter Number: = ");
scanf("%d", &n);
for(i=0; i<n; i++)
{
printf("Enter value for [id %d] =", i);
scanf("%d", &x[i]);
}
printf("Enter search number: = ");
scanf("%d", &search);
for(i=0; i<n; i++)
{
if(search==x[i])
a=x[i];
}
if(search==a)
printf("\n I have found");
else
printf("\n I have not found");
}
একটি array এর মাধ্যমে maximum সংখ্যা বের করার জন্য একটি program লিখ।
Program:
#include<stdio.h>
main()
{
int n, i, max, x[50], p, c=0;
printf("Enter number: N= ");
scanf("%d", &n);
for(i=0; i<n; i++)
{
printf("Enter number for [id %d]= ",i);
scanf("%d", &x[i]);
}
max=x[0];
p=0;
for(i=0; i<n; i++)
{
if(x[i]>max)
{
max=x[i];
p=i;
}
if(x[i]==max)
c++;
}
/*
for(i=0; i<n; i++)
{
if(x[i]==max)
c++;
}
*/
printf("Maximum number is=%d \n Position=%d", max,p);
printf("\n Total max=%d", c);
}
Find out the average mark, number of N students using array.
Program:
#include<stdio.h>
main()
{
int n, i, sum=0, m[50];
float avg;
printf("Enter students: N= ");
scanf("%d", &n);
i=0;
while(i<n)
{
printf("Enter mark for [id %d]= ", i);
scanf("%d", &m[i]);
sum=sum+m[i];
i++;
}
avg=sum/n;
printf("Avarage=%.2f", avg);
}
N সংখ্যাক ছাত্রের মার্কের Average বের করার জন্য while loop ব্যবহার করে একটি প্রোগ্রাম লিখ।
Program:
#include<stdio.h>
main()
{
int n, m, i, sum=0;
float avg;
printf("Enter students: N= ");
scanf("%d", &n);
i=1;
while(i<=n)
{
printf("Enter mark for [id %d] = ", i);
scanf("%d", &m);
sum=sum+m;
i++;
}
avg=sum/n;
printf("Avarage =%.2f", avg);
}
একটি পরীক্ষায় কত পার্সেন্ট ছাত্র/ছাত্রী পাশ এবং ফেল করেছে তা বের করার জন্য একটি প্রোগ্রাম লিখ।
Program:
#include<stdio.h>
main()
{
int n,m,p,i,f=0,pass;
float mark;
printf("Enter students : N= ");
scanf("%d", &n);
printf("Enter pass marks : M= ");
scanf("%d", &m);
for(i=1; i<=n; i++)
{
printf("Enter mark for [id %d] = ",i);
scanf("%f", &mark);
if(mark>m)
f++;
}
p=(f*100)/n;
printf("Percentage of students fail to pass the exam = %d", p);
pass=100-p;
printf("\nPercentage of students pass to pass the exam = %d", pass);
}
Banking program
Program:
#include<stdio.h>
main()
{
int x,y;
printf("Enter Total Amount = ");
scanf("%d", &y);
if(y>=1000)
{
x=y/1000;
y=y%1000;
printf("\n1000Tk= %d", x);
}
if(y>=500)
{
x=y/500;
y=y%500;
printf("\n500Tk= %d", x);
}
if(y>=100)
{
x=y/100;
y=y%100;
printf("\n100Tk= %d", x);
}
if(y>=50)
{
x=y/50;
y=y%50;
printf("\n50Tk= %d", x);
}
if(y>=20)
{
x=y/20;
y=y%20;
printf("\n20Tk= %d", x);
}
if(y>=10)
{
x=y/10;
y=y%10;
printf("\n10Tk= %d", x);
}
if(y>=5)
{
x=y/5;
y=y%5;
printf("\n5Tk= %d", x);
}
if(y>=2)
{
x=y/2;
y=y%2;
printf("\n2Tk= %d", x);
}
if(y>=1)
{
x=y/1;
y=y%1;
printf("\n1Tk= %d", x);
}
}
Write a program following the equation : Y = f1x1+f2x2+f3x3+………………..+fnxn
main()
{
int f,x,i,y=0,n;
printf("n=");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
printf("Value of [x%d]=",i);
scanf("%d",&f);
printf("Value of [y%d]=",i);
scanf("%d",&x);
y=y+f*x;
}
printf("y=%d",y);
}
Write a program the following equation: V = (4πr^3/3) and A = 4π r^2
1. V = (4πr^3/3)
2. A = 4π r^2
Program:
#include<stdio.h>
#include<math.h>
main()
{
float v, a, r,sum=0;
printf("R = ");
scanf("%f", &r);
v=(4*3.1416*pow(r,3))/3;
a=(4*3.1416*pow(r,2));
printf("V= %.2f \nA=%.2f", v, a);
sum=a+v;
printf("\nSumission = %.2f", sum);
}
Write a program the following equation: Y = (x^5(√(10-x^5))/3)
#include<math.h>
main()
{
float x, y;
printf("X= ");
scanf("%f", &x);
y=pow(x,5)*sqrt((10-pow(x,5))/3);
printf("Y= %f", y);
}
Students mark sheet with multiple subject
Program:
#include<stdio.h>
main(){
int n,i,j,mark,subject;
float avg,sum=0;
printf("Enter total students: N= ");
scanf("%d", &n);
for(i=1; i<=n; i++)
{
printf("\n\n Number of subject for [Id %d] = ", i);
scanf("%d", &subject);
sum=0;
for(j=1; j<=subject; j++)
{
printf("Enter marks for [subject %d] = ",j);
scanf("%d", &mark);
sum=sum+mark;
}
avg=sum/subject;
printf("\Average Mark of [Id %d]= %.2f", i,avg);
}
}
Find out the average mark of n students.
Program:
#include<stdio.h>
main(){
int n,i,mark;
float avg,sum=0;
printf("Enter total students: N= ");
scanf("%d", &n);
for(i=1; i<=n; i++)
{
printf("Mark for [ID %d]=", i);
scanf("%d", &mark);
sum=sum+mark;
}
avg=sum/n;
printf("Average =%.2f", avg);
}