Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to print this sereis 2 4 3 6 5..........?

Answers were Sorted based on User's Feedback



how to print this sereis 2 4 3 6 5..........?..

Answer / iamdluffy

something like

for(n=2;n<somenumber;n++)
{
print n;
print n*2;
n=n-1;
}

Is This Answer Correct ?    2 Yes 1 No

how to print this sereis 2 4 3 6 5..........?..

Answer / taz

2 3 5 is prime number & 4 after 2, 6 after 3...is two times
of previous number.

Is This Answer Correct ?    0 Yes 1 No

how to print this sereis 2 4 3 6 5..........?..

Answer / habeeb ahmed

10

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What is the use of linkage in c language?

0 Answers  


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

0 Answers   Wilco,


how do we remove the printed character in printf statement and write next it it

1 Answers  


What is the use of ?

0 Answers  


Explain how can you tell whether a program was compiled using c versus c++?

0 Answers  


struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(ā€œ%dā€,s.x); }

2 Answers   Vector,


Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.

1 Answers   Amazon, CSJM, HCL, Microsoft, TCS, Wipro,


IS STRUCTURES CAN BE USED WITHIN AN ARRAY?

7 Answers   Caritor,


i want to have a program to read a string and print the frequency of each character and it should work in turbo c

3 Answers   Persistent, Wipro,


How can I recover the file name given an open stream?

0 Answers  


c program to print a name without using semicolon

9 Answers   TCS, Wipro,


write a own function for strstr

1 Answers   LG Soft,


Categories