C Language Coding Tasks (alstrukdat task)

Good Morning🙂
And finally. . . i can do this work,:D simple program that is the sum.
i do all my work by looking for references from the internet. the program write by C language and i use devc++ program.
check it out🙂

#include
#include
main()
{
int a,b,c;
char ulangi=’Y’;
while ((ulangi==’Y’)||(ulangi==’y’))
{
printf(“Masukkan Angka Pertama : “);
scanf(“%i”,&a);
printf(“Masukkan Angka Kedua : “);
scanf(“%i”,&b);
c=a+b;
printf(“Hasil Penjumlahan %i + %i = %i “,a,b,c);
printf(“\n”);
printf(“Ulangi Penjumlahan [Y/T]? “);
scanf(“%s”,&ulangi);

}
printf(“Terimakasih”);
getch();
}

and at the request of the lecturer this program use : looping, selection, input, and output.
and you can try this program by download from : Click here

thanks for reading🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s