#include <stdio.h>
main()
{
int n,i,j,a[10][10],t;
clrscr();
printf("enter the limit of an array\n");
scanf("%d",&n);
printf("enter the elments of an array\n");
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
for(j=1;j<=n-i;j++)
scanf("%d",&[j+1])
{
t=a[j];
a[j]=a[j+1]=t;
}
printf("the numbers after sorting are:\n");
for(i=1;i<=n;i++)
printf("%d\t",a[i]);
getch();
}
fdsgfhgdfhgdf
By learning how to program on C+.
#include
program to find maximum of two numbers using pointers
how to write a program that counts automorphic number from 1 to 999
largest of a, b, c :a > b ? a > c ? a : c : b > c ? b : c
substracion of any two number program in c
write a c program to accept a number and generate a square root cube and exponential values
To write a C++ program to display the student details using class and array of object.
Since there is an infinite set of prime numbers the answer would be infinity.
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
Reference: cprogramming-bd.com/c_page4.aspx#ODD%20 Numbers