TURBO C PROGRAM MENGINPUTKAN BILANGAN

By sulthan on Friday, July 28, 2017

Pertemuan 2 
Latihan 2.2

Buatlah Algoritma dan program untuk menginputkan bilangan 1, bilangan 2 sampai bilangan 5
Ditanya : Nilai total, Nilai rata – rata

Program

#include<stdio.h>
Main()
{
Int n1,n2,n3,n4,n5;
Float total, rata2;
Clrscr();
Printf(“Masukkan Bilangan 1 : “); scanf(“%d”,&n1);
Printf(“Masukkan Bilangan 2 : “); scanf(“%d”,&n2);
Printf(“Masukkan Bilangan 3 : “); scanf(“%d”,&n3);
Printf(“Masukkan Bilangan 4 : “); scanf(“%d”,&n4);
Printf(“Masukkan Bilangan 5 : “); scanf(“%d”,&n5);
Total=n1+n2+n3+n4+n5;
Rata2:total/5;
Printf(“Nilai total adalah : %f\n”,total);
Printf(“Rata2 adalah : %f\n”,rata2);
Getch();
}


FLOWCHART


&quot;what is internet in hindi&quot; || internet kya hai (in hindi)

What is internet in hindi ||history of internet in hindi "What is internet in hindi", today we all are trying to know about what i...