Selasa, 03 Januari 2012

strukturperulangan for.cpp

#include<iostream.h>
#include<stdio.h>
#include<conio.h>
//using namespace std;
int main(){
clrscr();
  int x;
  int y;
  int C;
  x=1;
  y=1;

  cout<<x<<","<<y+0<<",";

  for(C=0;C<6;C++){
    x=x+6;
    y=y+5;


   cout<<x<<","<<y<<",";
    }
    getch();
    return 0;
}

Tidak ada komentar:

Posting Komentar