Ask coding questions

← Back to all posts
Make an algorithm for the source code of Program 3.3.
erdinussamangil

Retype Program 3.3 source code.
a. Add NIM and Name → using :
o printf("NIM = Enter NIM");
o printf("Name = Write Full Name");
b. What is the output → analyze it

/* -------------------

  • welcome.c
  • -------------------- /
    #include <stdio.h>
    main() {
    int bil1, bil2, jumlah; /
    deklarasi /
    /
    input bilangan 1 /
    printf(“Input bilangan 1 : \n“); scanf(“%d”, &bil1);
    printf(“Input bilangan 2 : \n”); scanf(“%d”, &bil2);
    jumlah = bil1 + bil2; /
    penjumlahan /
    /
    output */
    printf(“Penjumlahan %d dengan %d adalah %d”, bil1,bil2,jumlah);
    }
Voters
erdinussamangil