Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

How can I write in order with for loop or while loop?

Where is my mistake ? it should be like for instance user input 4 program show us like that 

1.E 

2.01 

3.0011 

4.000111



2 Answers
Arnab Chakraborty

Example
#include
#include
void main() {
   int i,j,a=0,b=1,n;
   clrscr();
   printf("****************OUTPUT*****************\n\n");
   printf("enter the value of n : ");
   scanf("%d",&n);
   printf("\n the required order is: \n\n" );

   for(i=1;i

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.