Computer Science, asked by rizwanmohiuddin9758, 1 year ago

Write a c program to generate the first 50 positive integers that are divisible by 7

Answers

Answered by garywalter1221
3

main()

{

   int i,j;  

   clrscr();

   for(i=1;i<=50;i++)

    {

            for(j=1;j<=50;j++)

             {

                   if(j%7==0)

                   {

                        printf("%d  ",j);

                   }      

             }

    }

   getch();

}



Hope this answer will help u

Similar questions