এই ব্লগটি সন্ধান করুন

বুধবার, ৬ এপ্রিল, ২০১১

Source Code of "Area of rectangle"


#include<stdio.h>
#include<conio.h>
void main()
{          int l, h, a;
            clrscr();
            printf("Given length l: ");
            scanf("%d",&l);
            printf("Given height h: ");
            scanf("%d",&h);
            a=l*h;
            printf("When length =%d and height =%d than area of rectangle is %d", l,h,a);
            getch();
}

মঙ্গলবার, ৫ এপ্রিল, ২০১১

Source Code of Odd or Even number


#include<stdio.h>
#include<conio.h>
void main()
{          int a;
            clrscr();
            printf("Input your number: ");
            scanf("%d",&a);
            if(a%2==1)
                        printf("\nThis number is ODD.");
            else
                        printf("\nThis number is EVEN.");
            getch();
}