25 Mart 2016 Cuma

C Klavyeden Girilen Sayının Negatif mi - Pozitif mi Olduğunu Bulan Program

C Programlama
C Programlama

C Programlama Klavyeden Girilen Sayının Negatif mi - Pozitif mi Olduğunu Bulan Programın Kodları;

#include <stdio.h>
#include<conio.h>
main()
{
    int t;

    printf("Bir sayi girin: "); scanf("%d",&t);
    
    (t>0) ? printf("Pozitif") : (t<0) ? printf("Negatif") : printf("Sıfır");
    getch();
}

15 yorum


EmoticonEmoticon

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer