Computer Science, asked by avikgupta296, 1 month ago

WRITE A PROGRAM TO PRINT THE FOLLOWING DESIGN..

2 4 6 8 10
1 3 5 7
2 4 6
3 5
4

Answers

Answered by tanishanagar977
0

#include <stdio.h>

void main()

{      

   int i;

printf("The first 10 natural numbers are:\n");

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

{      

 printf("%d ",i);

}

printf("\n");

}

hope it will help yuh more

Similar questions