I don't need to print out the reverse just solve by it. Also I haven't seen the % used like this, what exactly is it doing?
Type: Posts; User: jp5a9852
I don't need to print out the reverse just solve by it. Also I haven't seen the % used like this, what exactly is it doing?
Most of the questions I ask are like that unfortunately, I'm not finding this in my book though so I don't know where to start. So I must ask.
As the title says I need to know how to reverse numbers in c without using the arrays. Why? That is part of my assignment. My professor told me that there is a simpler way to do it but I don't know...
My teacher never specified whether it was supposed to be float or int, so I'll use int, thanks.
I've revised my code, this is what I have now. I can see why you were mad at my code earlier, it was...
That is correct Matticus.
I'm just doing it the way I've been taught in class so far, as you can tell, I've not been learning for very long. Thanks for the help anyway, it was so obvious too, I used the single quotes below it...
What I need to do is make a program that takes a number less than 6 digits that is inputed by the user and then solve according to the op inputed.
I just need to know how to get the reverse of the...
Okay that helps a little, this is what I got now:
#include <stdio.h>
#include <math.h>
int main(void)
Problem:
Write C loop to display the multiplication table as shown below.
1 2 3 4 5 6 7 8 9
1 1
2 2 4
3 3 6 9
4 4 8 12 ...
Alright, I think I'm close. This is what I've done over the past two hours.
#include <stdio.h>
#include <ctype.h>
//Function Prototype
void title();
float userBal();
char userMenu();
This is a long read, I know, but I've been trying things for several hours. If you read all this and take the time to help me your a saint.
I'm trying to put everything in this program into...
I got it, thanks for your help, sorry I drew it out so long. It's much appreciated.
When i and j are 7 (I turned i and j to = 0 as you suggested earlier)it stops printing and comes out of the loop, is that what you mean?
Yes, but we went over them quickly in class and I don't see how they apply here.
To break out do I use a "break", "continue", or something like that? I was just looking at those in my book and I...
I'm starting to understand, I spent the last 20 minutes trying things. So I need to break out of that loop, make another one that prints ** twice, without calling the * again? How do I go about this?
n = 6, not n = 5, sorry.
5. Write a short program to display the following tree using only one '*' character as input. (Hint use for statements.)
*
**
***
****
*****
******
**