Program to input 10 numbers and print with serial number


#include<stdio.h>
main()
{
int i,response[11];

//start taking values

    for(i=1;i<=10;++i)
       {
       scanf("%d",&response[i]);
       }

//start printing values
    printf("\nRating    Number you inputed");
    printf("\n---------------------------\n");

    for(i=1;i<=10;++i)
       {
       printf("%d\t\t",i);
       printf("%d\n",response[i]);
       }
getch();     
}

Comments

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples