Question:
Credits: Swathi.
#include<stdio.h>
void main(){
int n;
//As we are taking it in pair.
printf("Enter the limit in pairs:");
scanf("%d",&n);
int even=1,odd=1;
int i;
for(i=0;i<n;i++)
{
printf("%d,%d,",even,odd);
even*=2;
odd*=3;
}
}
Credits: Swathi.
#include<stdio.h>
void main(){
int n;
//As we are taking it in pair.
printf("Enter the limit in pairs:");
scanf("%d",&n);
int even=1,odd=1;
int i;
for(i=0;i<n;i++)
{
printf("%d,%d,",even,odd);
even*=2;
odd*=3;
}
}
0 comments:
Post a Comment