[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Basics

Home > Programs > Basics

4 / 279

Write a program to print odd number in descending order from 1-10.

Answer:

#include
#include
void main()
{
   int i,j=2;
   for(i=10;i>=1;i--)
   {
     if(i%j==1)
     {
       printf("%d",i);
     }
   }
}

Asked In :: TCS

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: