i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
Answer Posted / guest
k=4
Is This Answer Correct ? | 20 Yes | 3 No |
Post New Answer View All Answers
Can true be a variable name in c?
I need previous papers of CSC.......plz help out by posting them.......
What are the types of data types and explain?
What is the scope of static variable in c?
What is a program flowchart?
Explain modulus operator. What are the restrictions of a modulus operator?
Is main is user defined function?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Write programs for String Reversal & Palindrome check
What are local variables c?
How can I write functions that take a variable number of arguments?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Explain how does flowchart help in writing a program?
Why n++ execute faster than n+1 ?
Is c is a procedural language?