Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3852834
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:22:36+00:00 2026-05-19T17:22:36+00:00

Like a good programmer I guess I’m trying to be lazy and make the

  • 0

Like a good programmer I guess I’m trying to be lazy and make the program make anything but I’m starting to think this can’t be done this way so here it goes…

I have 27 variables a1,a2,a3,a4,a5,a6,a7,a8,a9,b1,b2,b3,etc,c1,c2,c3,etc…

I want the user to give me the numbers for each but I don’t want to do it manually I want to do it with a for something like this:

for(i=0;i<=0;i++)
{
char a= 'a'+i;
char b= 'b'+i;
char c= 'c'+i;

printf("give me 1st number in square\n");
scanf("%d",a);
printf("give me 2nd number in square\n");
scanf("%d",b);
printf("give me 3rd number in square\n");
scanf("%d",c);

}

Any idea how to make this? if there’s a way I would really appreciate you can tell me thank you very much XD

Yeah also if you can’t understand or want me to explain better tell me and I will try my best to remake this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:22:36+00:00Added an answer on May 19, 2026 at 5:22 pm

    This is what arrays are for. Instead of having variables like a1, a2, a3, b1, b2, b3, etc., just have two arrays:

    int a[5]; // a[0] through a[4]
    int b[4]; // b[0] through b[3]
    

    Then you can access the variables with expressions like a[i], where i is any integer (provided you don’t try to access outside the array bounds, of course).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I might be one anal programmer, but I like code that looks good from
As you know, a good programmer is a lazy programmer, but I'm just lazy.
I've been looking into OSGi recently and think it looks like a really good
One of my non-programmer friends recently decided to make a C++ program to solve
For those who like a good WPF binding challenge: I have a nearly functional
What are good libraries for C with datastructures like vectors, deques, stacks, hashmaps, treemaps,
I like jQuery and I was wondering if anyone have used a good plugin
Good morgning, I would like to be able to analyze text where I am
It sounds like Mozilla is having good luck improving JavaScript performance with TraceMonkey .
Cancellation Handler works good for Composite activities like CAG, Parallel activity. I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.