সোমবার, ১৪ জানুয়ারী, ২০১৯

Seeder.cc website for downloading torrent file

Seeder.cc is very good website for downloading torrent file using internet download manager.
Just upload the torrent file and download your file from seeder.cc website and by referring your friends you can also earn upto 2gb free bandwidth.

Website link: www.seeder.cc 

মঙ্গলবার, ২ আগস্ট, ২০১৬

Conver a Decimal Number into others number system.

#include<stdio.h>

char arr[] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
void convertNumber(int n, int base)
{
    if(n!=0){
        int temp = n%base;
        convertNumber(n /= base, base);
        printf("%c",arr[temp]);
    }
}

int main()
{
    int n, b;
    printf("Enter number to convert : ");
    scanf("%d",&n);
    printf("Enter base : ");
    scanf("%d",&b);
    printf("Number in base %d is ",b);
    convertNumber(n,b);
    return 0;
}

রবিবার, ১২ ডিসেম্বর, ২০১০

ARRAY C Programing


1.Write a program to search for an element form an array input from the user.
#include<stdio.h>
#include<conio.h>
void main()
{
            int a[40],i,n,flag,p;

Some Important Program

Number conversion (binary,decimal,octal,hexadecimal)

#include<stdio.h>
#include<conio.h>
void main()
{
    char base16[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
    long num;
    long cnum[68];
    int base,number,i,j;
    clrscr();
    printf("\nEnter a decimal number to convert : ");
    scanf("%ld",&num);
    printf("\nEnter base for convert : 2(for binary),8(for octal),16(for hexadecimal) : ");
    scanf("%d",&base);
    i=0;
    while(num!=0)
    {
         cnum[i]=num%base;
         num=num/base;
         i++;
    }
    i=i--;

Function C Programing


1.Write a function to calculate the factorial value of any integer entered through the keyboard.
#include<stdio.h>
#include<conio.h>
long fact(int n)
{
            int i;
            long f=1;
            for (i=1;i<=n;i++)
                f*=i;
            return (f);

Lopping C Programing


1.(i)X and n are input through keyboard. Write a program to compute n!,  nCr, nPr
#include<stdio.h>
#include<conio.h>
long int fact(int n)
{
            int i,f=1;
            for (i=1;i<=n;i++)
                f*=i;

Conditional C Program


1.Three  numbers are input through keyboard, write a program to find  out  the maximum  and minimum  of these  3  numbers.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
            int a,b,c;
            float aver;
            double s;
            clrscr();
            printf("Please enter three different inteser :\n");
            scanf("%d%d%d", &a,&b,&c);
            if(a>b && b>c && b>c)