hello,
how can i print out a bar graph like this:
*
* * * *
* * * * * *
* * * * * *
* * * * * *
0 1 2 3 4 5
Type: Posts; User: n00by
hello,
how can i print out a bar graph like this:
*
* * * *
* * * * * *
* * * * * *
* * * * * *
0 1 2 3 4 5
no, i want to know why it does that. why it doesn't print out the 1.
hello again. this is a real n00b question but why doesn't the "1.0" show up with this code?
#include <stdio.h>
main()
{
float x;
for( x = 0; x <= 1.0; x += .1 )
printf( "%.1f ",...
hi again. just to update, i found out a solution to my problem. all i had to do was add a space before the %c in the scanf statement.
scanf(" %c", &x);
this makes the scanf read all the white...
if you input "s" or "c" and then input a number, it prints out the table but then it also prints out "(S)ine, (C)osine, or (Q)uit: -- Illegal Input" and then it waits for you to press enter and then...
#include <stdio.h>
#include <math.h>
main()
{
int count;
float ctr,a;
char x,s,S,c,C,q,Q;
do{
i still don't get it. what can i do/change/add to the code?
hi, can you guys help me out with this portion of code. I don't know what's wrong with it.
#include <stdio.h>
#include <math.h>
main()
{
int count;
float ctr,a;
char x,s,S,c,C,q,Q;
hi, how can i get this program to function properly. if "IX" is entered, i get 11 instead of 9. i wanted to write an equation where if the one letter was smaller than the next (IX), then subtract 2...
hi, how can i get this program to function properly. if "IX" is entered, i get 11 instead of 9. i wanted to write an equation where if the one letter was smaller than the next (IX), then subtract 2...
thanks that worked. :)
hi, i have to write a program that converts roman numerals to regular numbers and it takes all the info from the commandline, like so: "% roman MMIV".
here is what takes the input.
int main(int...
hi can someone please explain how to find the mode of an array. i have a program that takes input until EOF. then the program takes the inputs, finds the mean, median, mode, and standard deviation. i...
hi again. i have a question on how to get my program to work. my program is to see how many steps a robot can take to get to a certain distance. the user inputs 3 step sizes and the distance. then,...
i was wondering if it is possible to have a scanf in a for loop and keep each value the user inputs? how can i store each value the user inputs?
i need to keep each value because the program takes...
thank you. i'll mess with it to try to get it right.
i wasn't precise with the *'s but something of that nature.
no i mean like this
*****
*********
*************
*****************
*******************
********************
hi how can i print a sin graph from 0 to PI with "*" using nested for loops. i am a beginner and i need help.