bende c ye yeni baslayanlardanım..sekli az cok kurdum ama listeleme işini yapamıorum.yazdıklarımızı tekrar nasıl cagırıp ekrana yazdırıcaz?
Baslik C++ ama kodlarin neredeyse hepsi C de yazilmis.
Arkadaşlar Bana C++ ta ekran koruyucu Lazım..Yardım Ederseniz Sevinirim. Şimdiden Teşekkürler.
Paylaşım için teşekkürler.
arkadaslar ben c++ da animasyonlu jackpot oyunu yapmak istiyorum ama derleyici olarak code::blocks kullanıyoruz ve içerisinde bulunan FLTK kütüphanesi yardımıyla yapmam gerekiyo ve bu konuda neredeyse sıfırım. yardımcı olursanız sevinirim şimdiden teşekkürler.
arkadaşlar halkla ilişkiler okuyorum, hiç anlamıyorum c++ programından hoca bu ödevi vermiş..yardım edermisiniz?
ödev şu:Klayden girilen -100..100 aralığındaki negatif ve pozitif sayıları, ekrana yazdıran programı oluşturun.
al kardeş bu bütün pozitif negatif sayilar bulur sadece -100 ile 100 değil hepsini bulur.(C++ da yazdım)
bana yardım edebilirmisiniz c++ da yıldızlarla adımı yazdırmalıyım forla serhat tan srhat ı yaptım e yi koyunca hata verio lütfen 16/05/2011 saat 22:00 a kadar yardımlarınızı bekliyorum
arkadaşlar bir sürü örnek yayınlayacağım takip edersiniz
bu bir sayı tahmin oyunudur kolay gelsin #include <cstdlib> #include <iostream> #include <windows.h>
using namespace std;
int randomsayi(int aralik) { srand(GetTickCount()); int sayi = rand()%aralik; return sayi; } int main(int argc, char *argv[]) { system("color 1b");
int user_gir_sayi; int random_gir_sayi; int user_hak=10;
cout<<"|----------------------------|"<<endl; cout<<"| Programmed By Serhat |"<<endl; cout<<"| Sayi Tahmin |"<<endl; cout<<"|----------------------------|"<<endl; cout<<""<<endl; cout<<""<<endl;
cout<<"1 sayi tahmin ediniz :"<<endl; cout<<""<<endl; cin>>user_gir_sayi;
if (user_gir_sayi == random_gir_sayi) { cout<<""<<endl; cout<<"Tebrikler Tahmininiz Dogru !!!"<<endl; cout<<""<<endl; } else if (user_gir_sayi > random_gir_sayi) { cout<<""<<endl; cout<<"Lutfen daha kucuk bir sayi giriniz !!!"<<endl; cout<<""<<endl; user_hak=(user_hak-1); goto sorgu; } else if (user_gir_sayi < random_gir_sayi) { cout<<""<<endl; cout<<"Lutfen daha buyuk bir sayi giriniz !!!"<<endl; cout<<""<<endl; user_hak=(user_hak-1) ; goto sorgu; }
system("PAUSE"); return EXIT_SUCCESS; }
bu da kim 500 milyar ister soruları değiştirebilirsiniz #include <cstdlib> #include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15; cout<<" KIM 500 000 ISTER "<<endl; cout<<" "<<endl; cout<<"Soru 1 : Istanbul kac yilinda feth edilmistir?"<<endl<<" "<<endl<<"1)1299 2)1453 3)1919 4)1923"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s1; if(s1==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; }
if(s1==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; }
if(s1==4) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s1==2) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 50 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 2 : Unlu cizgi film kahramani Temel Reis'in zor durumlarda yedigi sebze "<<endl<<"nedir?"<<endl<<" "<<endl<<"1)Karnibahar 2)Mantar 3)Semiz otu 4)Ispanak"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s2; if(s2==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s2==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s2==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; }
if(s2==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 100 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 3 : 19 Mayis ne bayramidir ?"<<endl<<" "<<endl<<"1)Ataturk'u Anma Genclik ve Spor Bayrami"<<endl<<"2)Ulusal Egemenlik ve Cocuk Bayrami"<<endl<<"3)Cumhuriyet Bayrami"<<endl<<"4)Zafer Bayrami"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s3; if(s3==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s3==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s3==4) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s3==1) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 150 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 4 : Asagidakilerden hangisi bir devlet adami degildir ?"<<endl<<" "<<endl<<"1)Ataturk 2)Sah Ismail 3)Tonyukuk 4)Piri Reis"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s4; if(s4==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s4==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s4==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s4==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 250 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 5 : Egypt asagidaki ulkelerden hangisinin turkcesidir?"<<endl<<" "<<endl<<"1)Endonezya 2)Ermenisstan 3)Misir 4)Ispanya"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s5; if(s5==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s5==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s5==4) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s5==3) { cout<<" "<<endl; cout<<"DOGRU CEVAP! TEBRIKLER BARAJI ASTINIZ! ODUL 500 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 6 : Suyun ozkutlesinin sicaklikla iliskisi nasildir?"<<endl; cout<<" "<<endl; cout<<"1)Sicaklik arttikca ozkutle artar"<<endl<<"2)Sicaklik azaldikca ozkutle artar"<<endl<<"3)En buyuk ozkutle 25 derecededir"<<endl<<"4)En buyuk ozkutle 4 derecededir"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s6; if(s6==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s6==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s6==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s6==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 1000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 7 : Asagidakilerden hangisi kucuk unlu uyumuna uyar?"<<endl; cout<<" "<<endl; cout<<"1)Alkol 2)Samsun 3)Boya 4)Buton"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s7; if(s7==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s7==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s7==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s7==3) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 2000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 8 : Madde dogada kac halde bulunur?"<<endl; cout<<" "<<endl; cout<<"1)4 2)3 3)2 4)1"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s8; if(s8==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s8==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s8==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s8==1) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 4000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 9 : Agirligin birimi nedir?"<<endl; cout<<" "<<endl; cout<<"1)Kilogram 2)Metre 3)Metrekup 4)Newton"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s9; if(s9==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s9==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s9==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s9==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 8000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 10 : Sapli kucuk bir sepetin icine bir bilye koyup hizla cevirdigimizde"<<endl<<"bilyenin yere dusmemesi fizikteki hangi kanunla aciklanir?"<<endl; cout<<" "<<endl; cout<<"1)Yercekimi 2)Eylemsizlik 3)Durgunluk 4)Tanecikli yapi"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s10; if(s10==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s10==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s10==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s10==2) { cout<<" "<<endl; cout<<"DOGRU CEVAP! TEBRIKLER BARAJI ASTINIZ! ODUL 16000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 11 : Birazilya milli takimi kac kere dunya kupasi birincisi olmustur?"<<endl; cout<<" "<<endl; cout<<"1)3 2)4 3)5 4)6"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s11; if(s11==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s11==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s11==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s11==3) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 32000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 12 : Bir gun boyunca yelkovan ile akrebin ust uste geldigi sure kac"<<endl<<"saniyedir?"<<endl; cout<<" "<<endl; cout<<"1)420 2)520 3)620 4)720"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s12; if(s12==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s12==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s12==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s12==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 64000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 13 : 2006 yili kimya nobel odulunu kim almistir?"<<endl; cout<<" "<<endl; cout<<"1)Muhammed Yunus 2)Roger Kornberg 3)Andrew Fire 4)George Smoot"<<endl; cout<<" " <<endl; cout<<"Cevap : "; cin>>s13; if(s13==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s13==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s13==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s13==2) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 125000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 14 : Dunyanin en yasli adami kac yasindadir?"<<endl; cout<<" "<<endl; cout<<"1)115 2)114 3)113 4)112"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s14; if(s14==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s14==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s14==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s14==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 250000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 15 : Eyfel kulesinin yulsekligi kac metredir?"<<endl; cout<<" "<<endl; cout<<"1)273 2)373 3)475 4)300"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s15; if(s15==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s15==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s15==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s15==4) { cout<<" "<<endl; cout<<"TEBRIKLER! TUM SORULARI DOGRU CEVAPLADINIZ! ODUL 500000 YTL!!!"<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<" Y A P I M serhat kaya"<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<" "<<endl;
} } } } } } } } } } } } } } }
system("PAUSE"); return EXIT_SUCCESS; }
bu da kim 500 milyar ister soruları değiştirebilirsiniz #include <cstdlib> #include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15; cout<<" KIM 500 000 ISTER "<<endl; cout<<" "<<endl; cout<<"Soru 1 : Istanbul kac yilinda feth edilmistir?"<<endl<<" "<<endl<<"1)1299 2)1453 3)1919 4)1923"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s1; if(s1==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; }
if(s1==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; }
if(s1==4) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s1==2) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 50 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 2 : Unlu cizgi film kahramani Temel Reis'in zor durumlarda yedigi sebze "<<endl<<"nedir?"<<endl<<" "<<endl<<"1)Karnibahar 2)Mantar 3)Semiz otu 4)Ispanak"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s2; if(s2==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s2==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s2==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; }
if(s2==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 100 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 3 : 19 Mayis ne bayramidir ?"<<endl<<" "<<endl<<"1)Ataturk'u Anma Genclik ve Spor Bayrami"<<endl<<"2)Ulusal Egemenlik ve Cocuk Bayrami"<<endl<<"3)Cumhuriyet Bayrami"<<endl<<"4)Zafer Bayrami"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s3; if(s3==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s3==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s3==4) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s3==1) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 150 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 4 : Asagidakilerden hangisi bir devlet adami degildir ?"<<endl<<" "<<endl<<"1)Ataturk 2)Sah Ismail 3)Tonyukuk 4)Piri Reis"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s4; if(s4==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s4==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s4==3) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s4==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 250 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 5 : Egypt asagidaki ulkelerden hangisinin turkcesidir?"<<endl<<" "<<endl<<"1)Endonezya 2)Ermenisstan 3)Misir 4)Ispanya"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s5; if(s5==1) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s5==2) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s5==4) { cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!" <<endl; } if(s5==3) { cout<<" "<<endl; cout<<"DOGRU CEVAP! TEBRIKLER BARAJI ASTINIZ! ODUL 500 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 6 : Suyun ozkutlesinin sicaklikla iliskisi nasildir?"<<endl; cout<<" "<<endl; cout<<"1)Sicaklik arttikca ozkutle artar"<<endl<<"2)Sicaklik azaldikca ozkutle artar"<<endl<<"3)En buyuk ozkutle 25 derecededir"<<endl<<"4)En buyuk ozkutle 4 derecededir"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s6; if(s6==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s6==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s6==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s6==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 1000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 7 : Asagidakilerden hangisi kucuk unlu uyumuna uyar?"<<endl; cout<<" "<<endl; cout<<"1)Alkol 2)Samsun 3)Boya 4)Buton"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s7; if(s7==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s7==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s7==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s7==3) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 2000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 8 : Madde dogada kac halde bulunur?"<<endl; cout<<" "<<endl; cout<<"1)4 2)3 3)2 4)1"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s8; if(s8==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s8==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s8==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s8==1) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 4000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 9 : Agirligin birimi nedir?"<<endl; cout<<" "<<endl; cout<<"1)Kilogram 2)Metre 3)Metrekup 4)Newton"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s9; if(s9==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s9==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s9==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s9==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 8000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 10 : Sapli kucuk bir sepetin icine bir bilye koyup hizla cevirdigimizde"<<endl<<"bilyenin yere dusmemesi fizikteki hangi kanunla aciklanir?"<<endl; cout<<" "<<endl; cout<<"1)Yercekimi 2)Eylemsizlik 3)Durgunluk 4)Tanecikli yapi"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s10; if(s10==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s10==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s10==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl; } if(s10==2) { cout<<" "<<endl; cout<<"DOGRU CEVAP! TEBRIKLER BARAJI ASTINIZ! ODUL 16000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 11 : Birazilya milli takimi kac kere dunya kupasi birincisi olmustur?"<<endl; cout<<" "<<endl; cout<<"1)3 2)4 3)5 4)6"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s11; if(s11==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s11==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s11==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s11==3) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 32000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 12 : Bir gun boyunca yelkovan ile akrebin ust uste geldigi sure kac"<<endl<<"saniyedir?"<<endl; cout<<" "<<endl; cout<<"1)420 2)520 3)620 4)720"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s12; if(s12==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s12==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s12==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s12==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 64000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 13 : 2006 yili kimya nobel odulunu kim almistir?"<<endl; cout<<" "<<endl; cout<<"1)Muhammed Yunus 2)Roger Kornberg 3)Andrew Fire 4)George Smoot"<<endl; cout<<" " <<endl; cout<<"Cevap : "; cin>>s13; if(s13==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s13==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s13==4) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s13==2) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 125000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 14 : Dunyanin en yasli adami kac yasindadir?"<<endl; cout<<" "<<endl; cout<<"1)115 2)114 3)113 4)112"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s14; if(s14==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s14==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s14==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s14==4) { cout<<" "<<endl; cout<<"DOGRU CEVAP! ODUL 250000 YTL!"<<endl; cout<<" "<<endl; cout<<"Soru 15 : Eyfel kulesinin yulsekligi kac metredir?"<<endl; cout<<" "<<endl; cout<<"1)273 2)373 3)475 4)300"<<endl; cout<<" "<<endl; cout<<"Cevap : "; cin>>s15; if(s15==1) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s15==2) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s15==3) { cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl; } if(s15==4) { cout<<" "<<endl; cout<<"TEBRIKLER! TUM SORULARI DOGRU CEVAPLADINIZ! ODUL 500000 YTL!!!"<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<" Y A P I M serhat kaya"<<endl; cout<<" "<<endl; cout<<" "<<endl; cout<<" "<<endl;
} } } } } } } } } } } } } } }
system("PAUSE"); return EXIT_SUCCESS; }
şimdi girilen 2 basamaklı sayının onlar ve birler basamağını bulan prıgram #include<stdio.h> #include<conio.h> main() { int a,Onlar,Birler; printf("Sayi giriniz\n",a); scanf("%d",&a); Onlar=a/10; Birler=a-Onlar*10; printf("Onlar=%d\n",Onlar); printf("Birler=%d\n",Birler); getch(); }
arkadaşlar buradan sorularınız varsa buyrun yazın yapabildiklerimi yaparım burada da yaşınızı ve boyunuzu program değerlendiriyor #include<stdio.h> #include<conio.h> main() { int yas,boy; printf("yasinizi giriniz"); scanf("%d",&yas); if(yas<7) printf("cocuksunuz"); else if(yas<25) printf("gencsiniz"); else if(yas<60) printf("yaslisiniz"); else printf("bir ayagı cukurda\n"); printf("\n"); printf("boyunuzu giriniz"); scanf("%d",&boy); if(boy<140) printf("cucesiniz"); else if(boy<180) printf("normal boydasiniz"); else printf("sırıksınız"); getch(); }
elimde daha çok var zamanım oldukça atacağım buda notunuzu 5'lik sistemde söyleyen program #include<stdio.h> #include<conio.h> #include<math.h> main() { int p; printf("puani gir\n"); scanf("%d",&p); if((p>=85)&&(p<=100)) printf("beslik sistemde=5"); else if((p>69)&&(p<84)) printf("beslik sistemde=4"); else if((p>54)&&(p<70)) printf("beslik sistemde=3"); else if((p>45)&&(p<55)) printf("beslik sistemde=2"); else if((p>24)&&(p<45)) printf("beslik sistemde=1"); else printf("beslik sisyemde=0"); getch(); }
arkadaşlar şu soruyu sormuş hocam yapamadım yardımcı olurmusunuz ?
@Klavyeden girilen 15 adet sayı bir sayı dizisinda saklanacaktır.Bu sayı dizisinin ortalaması hesaplandıktan sonra ortalamanın altında kalan terim sayısı ekrana yazdırılacaktır.