KarloZP

M. Iqbal Suhardimas ( 2018 804 302 ) | Soal No. 5 | Page 2 | TUGAS HARIAN

Oct 28th, 2020 (edited)
1,328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.     int angka, genap;
  6.     printf("M. Iqbal Suhardimas ( 2018 804 302 ) | Soal No. 5 | Page 2 | TUGAS HARIAN \n=--------------------=\n\n");
  7.     printf("Bilangan Genap menggunakan FOR \n");
  8.     printf("Masukkan Angka: ");
  9.     scanf("%d",&angka);
  10.    
  11.     for (genap=2;genap<=angka;genap+=2){
  12.         printf("%d  ", genap);
  13.     }
  14.     printf("\n");
  15.     printf("UTS No.2 : https://pastebin.com/7Ty9VXeH \n");
  16.     printf("UTS No.3 : https://pastebin.com/tvuXgZA8 \n");
  17.     printf("Tugas Harian No.4 : https://pastebin.com/q55XucAA \n");
  18.     printf("Tugas Harian No.5 : https://pastebin.com/DQTrSek8 \n");
  19.     return 0;
  20. }
Add Comment
Please, Sign In to add comment