Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tugas Looping Algoritma
#1
Sad 


Statment While

#include<stdio>
#include<conio>
#include<iostream>
main()
{
int i=1;
while(i<=10)
{
cout<<"logika dan algoritma "<<i<<endl;
i++;
}
getch();
}


Statment Do While

#include<stdio>
#include<conio>
#include<iostream>
main()
{
int i=1;
do
{
cout<<"logika dan algoritma "<<i<<endl;
i++;
}
while(i<=10);
getch();
}


Statment For

#include<stdio>
#include<conio>
#include<iostream>
main()
{
for (int i=1;i<=10;i++)
{
cout<<"logika dan algoritma "<<i<<endl;
}
getch();
}


Attached Files
.docx   TUGAS STATEMENT algo.docx (Size: 13.52 KB / Downloads: 1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)