how to write a program to print the first 10 multiples of 6 and 7 using nested for loop in qbasic
Answers
Answered by
0
#include<stdio.h>
#include<conio.h>
main()
{
int sum=0;i;n;
clrscr();
printf("Give the value of 6 and 7 ");
scanf(%d ,&n);
for i=1 i<=n;i++;
{
printf( "\n 6 * %ld = %ld",i, 6*i );
printf("\n 7* %ld = %ld",i, 7*i );
}
getch();
}
Similar questions