Computer Science, asked by shubnegi1004, 8 hours ago

how could I print 1,-3,5,-7 in C language ​

Answers

Answered by CoolorFoolSRS
1

#include<stdio.h>

#include<conio.h>

void main()

{

            int i,num;

           printf("Enter the last number:");

          scanf("%d",&num);

            for(i=1;i<=num;i=i+2)

            {

                     printf("\n%d",i);

           }

           getch();

}

Similar questions