Program C Bilangan Ganjil dan Genap Madika Wahyu Susandi, S.Kom. 11:23 PM Madika Wahyu Susandi, S.Kom. contoh program C++ inputan angka genap dan ganjil #include <iostream.h>void main (){ int batas,i;cout << "masukan angka maksimal :";cin >> batas;for (i=batas;i>0;i--){if (i%2==0) // ganjil (i%2==1)cout << i << endl;}} Tweet Share Share Share Share Sign up here with your email
ConversionConversion EmoticonEmoticon