用Fortran语言编写程序输出九九乘法表
时间: 2024-06-04 18:12:59 浏览: 167
利用Python输出九九乘法表
Sure, I can definitely help you with that! Here's a sample code in Fortran that can generate the multiplication table:
program multiplication_table
implicit none
integer :: i, j, product
do i = 1, 9
do j = 1, 9
product = i * j
write (*,*) i,' x ',j,' = ',product
end do
write (*,*)
end do
end program multiplication_table
This program will print out the multiplication table in the console. Let me know if you have any other questions!
阅读全文