TOPIC : LOOP&WHILE
LOOP
#include<iostream.h>
main( )
{
//declare variable
//get input
cout<<"enter integer";
cin>>x;
//loop for
for(y=0:y<xy:y++)
{
cout<<" "x;
}
WHILE
#include<iostream.h>
main( )
int x,y;
cout<<"enter an integer";
cin>>x;
//while(y<x)
cout<<" "<<x;
y++;
}
}
Sunday, March 27, 2011
FOP CHAPTER 6
Posted by Nor Kolifatun Kariadi at 12:33 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment