1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 16:34:15 +00:00
C02/py65/forforpf.c02

22 lines
449 B
Plaintext
Raw Normal View History

2018-02-14 00:52:14 +00:00
/******************************************
* FORFORPF - Test Nested FOR with PRINTF *
******************************************/
#include <py65.h02>
#include <stdlib.h02>
#include <stdio.h02>
#include <stdiox.h02>
char i,j,result;
main:
for (i=0;i<5;i++)
{
for (j=0;j<5;j++)
{
result=div(mult(mult(i,5)+j,3),5)+32; //(i*5+j)*3/5+32;
printf(result,"%d");
newlin();
}
}
goto exit;