Sign in
Please select an account to continue using cracku.in
↓ →
Consider the following C program
#include <stdio.h>
main()
{
float sum = 0.0, j = 1.0, i = 2.0;
while ( i/j > 0.001 ){
j=i+1
sum = sum + i/j;
printf ( “%f\n”, sum);
}
}
How many lines of output does this program produce?
Create a FREE account and get:
Book Free CAT Mentorship
Get personalized CAT strategy from a 99%iler
500+ students mentored
OTP Verification
Enter the 6-digit code sent to your phone
Booking Summary
Enter OTP
Didn't receive the OTP?
Educational materials for CAT preparation