print 1-50 with two loop & two print Statement
Answers were Sorted based on User's Feedback
Answer / ksambhaji999
For(i=1;i<50;i=i
+2)
{ printf
("%d",i);
for(j=2;j<51;j++)
{ printf
("%d",j);}
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ravindra kushwaha
for(int i=1;i<=25;i++)
{
printf("%d",i)
}
for(int j=25;j<=50;j++)
{
printf("%d",j)
}
Is This Answer Correct ? | 1 Yes | 0 No |
Explain how are portions of a program disabled in demo versions?
O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N
What are the average number of comparisons required to sort 3 elements?
write a program to remove duplicate from an ordered char array? in c
write a program to print infinte number
What is that continue statement??
Write a program of prime number using recursion.
What is %d used for?
What is clrscr ()?
1. Can we use the for loop this way? for(;i>5;) 2. What is the use of pointers? 3. what is array of pointer? 4. What is the difference between file and database? 5. Define data structure?
output for following code??? main() { int x=2,y,z; x*=3+2; printf("1.%d\n",x); x*=y=z=4; printf("2.%d %d %d\n",x,y,z); x=y==z; printf("3.%d\n",x); x==(y=z); printf("%d",x); }
How do I initialize a pointer to a function?