Program to demonstrate use of multiple variables with FOR loop
#include <stdio.h>
#include<conio.h>
void main() {
int i,j;
clrscr();
for (i=1, j=1; i<10, j<4; i++, j++) {
printf("\ni=%d j=%d", i,j);
}
getch();
}
#include<conio.h>
void main() {
int i,j;
clrscr();
for (i=1, j=1; i<10, j<4; i++, j++) {
printf("\ni=%d j=%d", i,j);
}
getch();
}
Post a Comment