Programming

Just another WordPress.com weblog

CT211-พิมพ์สูตรคุณแม่ 2 ถึงแม่ 12 ออกทางหน้าจอ

แสดงความเห็นโดย จั่น บน กรกฎาคม 14, 2008

#include <stdio.h>
#include <conio.h>
#include <iostream.h>

void main(){

for(int i=2; i<=12; i++){

for(int j=1; j<=12; j++){

cout << i << “*” << j << ” = ” << i*j << “\n”;

if(j == 12){

cout << “\n”;

}

}

}

getch();

}

ใส่ความเห็น

XHTML: คุณสามารถใช้แท็กเหล่านี้ได้: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>