Building a rectengular shape wtih C Programming Language

/*
 
* Rectangular.c
 
* * Copyright 2009 Hasanibrahim hasan@ibrahimkozan.com
 
* * This program is free software; you can redistribute it and/or modify
 
* it under the terms of the GNU General Public License as published by
 
* the Free Software Foundation; either version 2 of the License, or
 
* (at your option) any later version.
 
* * This program is distributed in the hope that it will be useful,
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
 * GNU General Public License for more details.
 
 * * You should have received a copy of the GNU General Public License
 
* along with this program
 
*/
 
#include <stdio.h>
#include <stdlib.h>
 
int main(int argc, char *argv[])
{
    int shortedge,longedge, space , i,j,k;
    printf ("short edge =");
    scanf("%d",&shortedge);
    printf("\n");
    printf("long edge =");
    scanf("%d", &longedge);
    printf("\n");
    space=(longedge-2)*2+1;
    shortedge=shortedge-2;
 
 
    for (i=0;i<longedge;i++)//This is TOP Edge
    {
        printf("* ");
    }
 
    printf("\n");
 
    for(j=0;j<shortedge;j++)//Here is MITTLE
    {
    printf ("*");
    for(k=0;k<space;k++)
    {
                         printf(" ");
    }
    printf("*\n");
    }
 
    for (i=0;i<longedge;i++)//This is BOTTOM edge
    {printf("* ");}printf("\n");
 
 
 
  system("PAUSE");	
  return 0;
}

i must explain a bit, i didn’t write any control to check is longedge
true or false, you can add

 while (shortedge<longadge)

i put space between * *, you can delete it, but if you,
you must modify a bit,
First Change

 {printf("* ");}printf("\n");

to

 {printf("*");}printf("\n");

Second Change

 space=(longedge-2)*2+1;

to

 space=(longedge-2);

it’s all, i hope it can be useful for you, Hasan ibrahim

Diabetic and dietetic foods

Diabetes or diabetes, we all know, “sugar disease” of scientific söylenimi can say more. Where did you remove this subject may be fitness can ask:) and I noticed that our society often confused preclude a bit of confusion I do think I did a little research about these two concepts.

Now remain in my mind from the principles of nutrition, let me express this as far as diabetes. Diabetes, blood sugar can also be more than the normal rate. Why is blood sugar accumulation in your mind he could ask.

Our intent from the sugar glucose. Glucose, the body of water, the air is so valuable and indispensable fuel. This fuel we use in our brain and all the organs, mainly in the liver more than that before then would be stored as fat in the sebaceous glands. Let me briefly explain the circulation of food in the body ..

We receive food by mouth for the first time in the mouth, then starts to digest the stomach and small intestine. But the main digestion, small intestine are. Here, our body materials, cement, iron with k protein, fat, vitamins and carbohydrates are absorbed. Carbohydrates and the way the first time, the liver is stored here, according to the needs or in need of diabetes began gönderiliyor.İşte body part here .. Pancreas, called insulin, the hormone is secreted, target orgaan go through the blood glucose, insulin and it took it sticks to the body organ is transferred to the relevant cells. If insulin is not enough, not enough glucose and glucose in the blood is not transferred, and consequently glucose circulating in the free state is starting to increase. This we call the first type of event that insufficient insulin is called diabetes. The second type of diabetes, the pancreas, insulin secretion, but normal levels of insulin secreted at this time because of the defective and ultimately unable to fulfill vini still gets stuck in traffic and glucose blood glucose level is rising again ..

First part over, I will continue tomorrow:)

New Food Developments: Adobe Flash ;)

IN new developments lesson, i and my teacher Prof. Dr. Ismail Sait Dogan decided to explain Adobe Flash Programme.

Sistem Gereksinimleri ile Ba?lad?m :)

********************************************************

Program hakkinda once teknik bir takim bilgiler sundum, nerelerde hangi amaca dayali olacagi konusunda bilgileri aktardiktan sonra, konunun daha iyi anlasilmasi icin aninda bi program hazirlamaya karar verdim.

Datashow  ile istege dayali bi program yaparak devam ettim :)

********************************************************

Anlatimim sirasinda kafalarda soru isaretleri kalmamasi icin karsilikli diyalog seklinde sunumu devam ettirdim. Herkesin hosuna gitmesini, arkadaslarin gozlerindeki isiktan anladim ve bu beni cok sevindirdi :)

Bazen hararetli anlar da oldu :)

********************************************************

Daha sonra bitise yakin bir zamanda duduklu tencere , ekmek yapimi metodlarini anlatan ve BiyotaShifa adli ben ve calisma arkadasima ait bir urunun online fiyatlandirmasina dayali ornekleri paylasarak ufak sempozyuma son verdim :)

Düdüklü Tencere projemi ve digerlerini anlatarak sonlandirdim :)

********************************************************

Sonuçta bir çok ki?i programin yuklenmesi, ogrenilmesi, fiyatlandirilmasi konusunda sorular sordular ve en kisa zamanda ogrenmek istedikleri hararetlerinden belliydi. Ozellikle Sayin Prof. Dr. ?smail Sait Dogan hocam, bu konuda israrli bi sekilde beraber calismamizi istedi. Zaman ayirdiginiz icin tesekkurler

To calculate compound interest with C Programming Language

#include stdio.h
#include stdlib.h
 
    main() {
int year=0;
float your_money;
printf("Your money i.e.: 1000  \n");
scanf ("%f", &your_money);
float annual_interest;
printf ("Please enter your annual interest i.e: 0.75 \n");
scanf ("%f", &annual_interest);
int howlong;
printf("How many years will your money stay in bank   ? i.e.: 5 \n");
scanf("%d", &howlong);
while (year<howlong)
{
your_money+=your_money*annual_interest;
year++;
}
printf(" After %d years, Your money will be %f $ or € etc \n", howlong, your_money);
 
printf("But i can say this money will not be useful for you :p ");
 
  system("PAUSE"); 
  return 0;
}

How to remove an integer from an integer with C programming language

it will show removal result. First there will be two float numbers assigned by users.

#include stdio.h
#include stdlib.h
 
minus ( float x, float y )
{
      float z;
      z=x-y;
      return z;
}
 
int main()
{
  float a,b,c; 
  int d;
  printf("Please enter two float digits with space.i.e: 12.322 16.2323n");
  scanf("%f %f", &a, &b);
  c=minus(a,b);
  d=(int)c;
  printf("Result= %d", d);
   
  return 0;
}

Wtih functions, life is easy :)

Iki gercel sayinin toplaminin tam sayi cinsinden gosterimi

#include stdio.h
#include stdlib.h

topla ( float x, float y )
{
      float z;
      z=x+y;
      return z;
}

int main()
{
  float a,b,c; 
  int d;
  printf(”bosluk birakarak iki gercel sayi giriniz. Orn: 12.322 16.2323n”);
  scanf(”%f %f”, a, &b);
  c=topla(a,b);
  d=(int)c;
  printf(”Sonuc= %d”, d);
   
  return 0;
}

My first Work

<strong>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;</strong>
 
float bol(a,b)
int a,b;
{
    float c;
      c = (float) a/b;
      return c;
}
 
int topla(d,z)
int d,z;
{
    int y;
    y= d + z;
    return y;
}
int main()
{
    int x,y,z;
    int toplananSayi;
    float bolunenSayi;
    printf("Aralarina virgul koyarak uc sayi giriniz, ORNEK 34, 22, 16 veya  9,3, 5 gibin");
    printf("Gireceginiz ilk iki sayi toplanacak ve ucuncu sayiya bolunecektir.n");
    scanf("%d, %d, %d", &amp;x, &amp;y, &amp;z);
    toplananSayi=topla(x,y);
    bolunenSayi=bol(toplananSayi,z);
    printf("Sonuc %f dir", bolunenSayi);
 
  system("PAUSE"); 
  return 0;
}

we could do same procees easly with functions

I started to C Programming Language

i started to study C programming Language again,after one of my best friend send me a book of C,

 

C Language is my favourite. i like it very much, i hope i will finish this year or maybe 2010 :)

Serial ATA SATA Discs

SATA HDD

SATA, Serial ATA .SATA of ‘ya at the moment and that most users use the CD-ROM, RW, DVD disk, such as a longer time to connect the reader to use my chest has evolved is a form of parallel assignment.

SATA standard more thin, ergonomic cable and the use of less number of pins possible just a short distance away veriyor.Ayrıca Parallel data transmission speed of data transmission in the Performing etkiliydi.Uzun distance, but the rate fell significantly. This is because the number of bits in the long distance to go in a random speed and therefore its occurrence was a mess. Also, 40 or 80-pin parallel cables, as they are thick because of the structure were not flexible enough. Therefore, the air circulation inside the case were also affected.

Other than the number of pin SATA connection low. Serial ATA just a cable for 6 or 8 core. The number of these vessels was 40 in the parallel cable, even with Ultra ATA 66 and 100s out also the number of vessels was 80. Serial connection is not possible in the time delay to happen. Because the serial port, parallel port signaling the contrary is made from a single channel.

SATA and PATA (Parallel ATA) data cable size difference between the high
Cumbersome and do not want to use the EIDE cable SATA-capable motherboard users with the help of an adapter for PATA hard disk SATA data cable can be inserted.

Now we will install Windows XP on SATA disks we will introduce how our XP installation gelelim.Windows here for information about installing XP yapıyoruz.Windows this screen during the encounter when we tıklayın.Kurulum “F6″ or push you.
“F6″ or after a while seems like when we did not have anything against us this screen to add a new device in gelecek.Biz “S” will press.

Immediately after the driver disk that comes anakartımızla us before installation to create or isteyecek.Disketiniz probably gerekir.Büyük these drivers from the motherboard or motherboard companies that produce the CD is in there from the internet can insert indirebilirsiniz.Disketimizi “Enter” button are

That name was read from the floppy disk drive and confirm for us to display a query arrived. “Enter” button give approval

Speaking about the SATA drives into saying you got a few details vereyim.SATA (serial set) if there is a supporting URL hdd I suggest you do not install win98.
a new technology to sell technology because it still win 98 setup and configure the BIOS settings is not supported olası.ama set to sell part of edebilirsiniz.biosta configure the enhanced mode, it “compatible” fashion bring diyorsanız.anakart illede 98 kurca I need desteğide.

What is sold: parallel ATA technology had advanced halidir.2002 also released sanırım.şuan Maxtor, Seagate and well-established companies often sell for as much as the technology supports.
süper bi data transfer speed up to 150MB per second is the event.
all devices that are supported pata disk, dma6 mode, atapi devices, CDRW, DVD can be connected to devices such as supports.
with the operating system you use does not cause a problem, has nothing to do with that OS.
A small number of pins in the cable boxes that will put an end to the salad.
SATASATA What is it? SATA (Serial ATA) Parallel ATA physical storage interface used for the new standard is developed instead. IDE interface Parallel ATA, which come in the last point, the Ultra ATA-133 with 133MB per second data transfer while supporting the theoretical as 600MB per second data transfer rate can reach the SAT with the potential of today, life is consumed in the stalemate that may take place is the best solution.
The data cable to the SATA IDE has a different structure.

SATA Advantages

In the future, 600MB / s data transfer rate can reach up to SATA considered, these standards developed by the group today, the lowest transfer rate up to 150MB / s will be guaranteed. Even in this state, SATA is faster than the peak point of stalemate.

SATA data cables, IDE cable compared to a standard 40 or 80 pinlik thinner and more flexible to have a structure that, in the case would be effective in reducing the hassle of wires. Naturally, this situation air circulation inside the case will be affected positively.

Unlike the bus topology pata SATA’larda some users that can confuse Master / Slave settings to control who does not have jumpers.
SATA Setup function ayargoster (chipset) (if (chipset == ‘intel’) intel.style.display = ‘block’; else intel.style.display = ‘none’; if (chipset == ’sil3112′) sil3112.style . display = ‘block’; else sil3112.style.display = ‘none’; if (chipset == ‘VT8237′) vt8237.style.display = ‘block’; else vt8237.style.display = ‘none’; if ( chipset == ’sis180′) sis180.style.display = ‘block’; else sis180.style.display = ‘none’; if (chipset == ‘no’) yok.style.display = ‘block’; else yet. style.display = ‘none’; isim.innerText = cards.options (cards.selectedIndex). innerText; / / this.options [this.selectedIndex]. value;) according to the controller on the motherboard installation procedure is described below.

SATA Controller Intel South Bridge SATA drives are fitted if the standard SATA port, on this disk when installing Windows do not require any advertisement is an extra, this south bridge provides more direct SATA’ları discs.
SATA drives are recognized directly in the BIOS can see.

NOTE: SATA disk is inserted and the ports if the RAID disk to install Windows to a different installation method is desired to be followed (this method will be discussed in the article RAID).

SATA Controller SATA drives Silicon Image SII 3112 before installing the operating system must create a driver disk. Disk drive, motherboard CD in the “\ Drivers \ SATA” directory to copy files into a floppy disk with a blank can be prepared .. Then at the start of the Windows installation “Third-party SCSI or RAID driver, press F6 if you want to install …” ib **** i appears by pressing F6 (you may need to press several times) SCSI RAID promote the arrival of the menu will be provided. Menu when “S” button to specify an additional device stage is reached. Place the prepared floppy disk at this stage “Enter” to continue with.

SATA drives during Windows setup to identify the system you need to press F6 on the screen is
Then the next screen “S” button, the Windows installation that you previously saved to the floppy disk drive is provided to scan

Finally, this screen may come in more than one drive, you’ve set up the situation by checking the appropriate option “ENTER” key to continue.

VT8237 South Bridge Chipset SATA Controller

SATA drives before installing the operating system must create a driver disk. Disk drive, motherboard CD in the “\ Drivers \ VIARAID \ DriverDisk \ Make Disk.exe” program can be created with. Then at the start of the Windows installation “Third-party SCSI or RAID driver, press F6 if you want to install …” ib **** i appears by pressing F6 (you may need to press several times) SCSI RAID promote the arrival of the menu will be provided. Menu when “S” button to specify an additional device stage is reached. Place the prepared floppy disk at this stage “Enter” to continue with.

SATA drivers during Windows installation to the system you need to press F6 to introduce the screen can be seen.
on the screen “S” button, the Windows installation that you previously saved to the floppy disk drive is provided to scan
Finally, this screen may come in more than one drive, you’ve set up the situation by checking the appropriate option “ENTER” key to continue.

SIS 180 SATA Controller

SATA drives before installing the operating system must create a driver disk. Disk drive, motherboard CD in the “\ Drivers \ RAID \ SiSRAID \ MakeDisk.exe” program can be created with. Then at the start of the Windows installation “Third-party SCSI or RAID driver, press F6 if you want to install …” ib **** i appears by pressing F6 (you may need to press several times) SCSI RAID promote the arrival of the menu will be provided. Menu when “S” button to specify an additional device stage is reached. Place the prepared floppy disk at this stage “Enter” to continue with.

SATA drives during Windows setup to identify the system you need to press F6 screen appears.
In this screen “S” button, the windows installation that you saved earlier to the floppy disk drive is provided to scan
Finally, this screen may come in more than one drive, you’ve set up the situation by checking the appropriate option “ENTER” key to continue.

Ve linux..

<p style=”text-align: center;”><img src=”http://img2.blogcu.com/images/e/m/r/emrahmete/linux.jpg” alt=”" width=”165″ height=”160″ align=”left” /></p>

This article has no English Translate , Srry