#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int sayici;
for (sayici=1;sayici<=10; sayici++)
{
if(sayici==5)
continue;
printf("%d",sayici);
}...
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int sayi,a,sayac,toplam,b,c;
sayac=1;
b=0;
toplam=0;
printf("Sayı girin=");
scanf("%d",&sayi);
while(sayac...
int sayi,a,sayac; // burada int syntaxını kullanarak "sayi - a - sayac" değerlerini sayı olarak belirttik
sayac=1; // "sayac" değerini 1 olarak belirttik
printf("Sayı girin="); // ekrana printf syntaxı ile "Sayı girin=" yazdırdık
scanf("%d",&sayi); // scanf syntaxı ile...
int main(int argc, char** argv) {
int asal, i, say = 0;
printf ("sayi gir:");
scanf ("%d", &asal);
printf ("\n");
for (i = 2; i < asal; i ++)
{
if (asal % i == 0)
say ++;
}
if(say>0)...
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a,b,top;
a=0;
top=0;
while (a<10)
{
printf("Sayı giriniz=");
scanf("%d",&b);
top=top+b;
a++;
}
printf("Sonuc= %d",top)...
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a,sonuc;
sonuc=1;
printf("Faktöriyeli bulunacak sayıyı giriniz:");
scanf ("%d",&a);
while (a>1)
{
sonuc=sonuc*a;
// sonuc *= a...
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a,toplam;
a=0;
toplam=0;
while (a<=100)
{
if(a %2 ==1)
printf("toplam= %d \n",a);
a++;
}...
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int zar[6];;
int rastgele;
int zaryuzu1, zaryuzu2,zaryuzu3,zaryuzu4,zaryuzu5,zaryuzu6,zaryuzu;
int i=0;
for(i=0;i<6;i++)
zar=0...
#include <stdio.h>
#include <stdlib.h>
/*oyuncu 2 zarı aynı anda atar.
bu yüzlerden 1,2,3,4,5,6 adet nokta bulunur.
zarlar durduktan sonra her iki zarında üste gelen yüzleri toplanır.
eğer toplam ilk atışta 7 yada 11 ise oyuncu kazanır.
eğer toplam ilk atışta 2,3 yada 12 gelirse oyuncu...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.