RokiAdhytama

Tugas Dasar Pemrograman

Dec 21st, 2020 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #include <conio.h>
  2. #include <iostream.h>
  3.  
  4. void main(){
  5.  
  6. clrscr();
  7. for( int genap = 0; genap <= 100; genap++ ){
  8.  
  9. if( genap %2 == 0 ){
  10. cout << genap << "\n";
  11. }
  12.  
  13. }
  14.  
  15. getch();
  16.  
  17. }
Add Comment
Please, Sign In to add comment