Answers for "inverted table langage c"

C
0

inverted table langage c

#include <stdio.h>
int main(void) {
 int i,j,n,t[5],d[5];
printf("How long do you want your table? :");
scanf("%d",&n);
 for (i=0;i<n;i++){
printf("enter the %d number :",i+1);
scanf("%d",&t[i]);
 }
 printf("The inverted table is:\n");
 for (i=(n-1);i>=0;i--){
   
 d[i]=t[i];
 printf("%d\n",d[i]);
 }
 
  return 0;
  }
Posted by: Guest on July-05-2021

Code answers related to "C"

Browse Popular Code Answers by Language