C-Kullanıcı negatif bir sayı girinceye kadar kullanıcıdan bir sayı girmesini isteyen

Konu sahibi son olarak 3322 gün önce görüldü
Kod:
#include <stdio.h>
#include <conio.h>
 
void main(void)
{
int sayi = 0;
 
clrscr();
 
while( sayi >= 0)
{
printf("\nSayi? : ");
scanf("%i",&sayi);
fflush(stdin);
 
printf("%i sayisini girdiniz.",sayi);
}
}
 
Geri