APC-S-006.c (562B)
1 /* Write a program to print first 10 multiple of 5 */ 2 3 /* 4 * Compiler Note: This source code is specifically designed for compilation 5 * and execution within the ** Turbo C ** environment. 6 * 7 * Testing Disclaimer: Due to a lack of access to the required Turbo C 8 * compiler software, this code has not been formally compiled or tested. 9 */ 10 11 #include <stdio.h> 12 #include <conio.h> 13 14 void main() 15 { 16 clrscr(); 17 int a = 5, i = 1, res; 18 while (i <= 10) 19 { 20 res = a * i; 21 printf("%d * %d = %d\n", a, i, res); 22 i++; 23 } 24 getch(); 25 }