Cetaklah
bilangan 1 sampai 4
flowchart:
C++ :
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a;
a=1;
while (!(a>4))
{
cout << a << endl;
a =a+1;
}
system("PAUSE");
return 0;
}
#include <string>
using namespace std;
int main()
{
int a;
a=1;
while (!(a>4))
{
cout << a << endl;
a =a+1;
}
system("PAUSE");
return 0;
}
0 komentar:
Posting Komentar