Computer Science, asked by onlytimepass, 3 months ago

What will be the output of the following program?

#include<stdio.h>
int main()
 {
     int i;
     int j = 2;
     for(i=1; i<=j; i++)
     {
         printf("%d", ++i);
     }
     return 0;
}

Answers

Answered by dhanyaradhu
0

Answer:

#include<stdio.h>

int main()

 {

     int i;

     int j = 2;

     for(i=1; i<=j; i++)

     {

         printf("%d", ++i);

     }

     return 0;

}

// Output will be 2

Similar questions