Reply
Old 04-29-2014, 02:06 AM   #1 (permalink)
 
Status: Senior Member
Posts: 719



Default read the following lines of code and indicate what you think about this code works and .

This is for a small hw assignment for my college introduction to info technology class. Its a gen ed course but its certainly not my area of expertise. Please help!! (C++ Programming, FOR loop structures)

void function fizzbuzz

For (i = 1; i<=100; i++)
{
set print_number to true;
If i is divisible by 3
print "Fizz";
set print_number to false;
If i is divisible by 5
print "Buzz";
set print_number to false;
If print_number, print i;
print a newline;
}


And:

int main(void)
{
int count, n;
n=5;
for (count = 1; count <=10; count = count + 1)
printf(count);
if (count>10) n=count;
return 0;
}


Thanks!

Money07 is offline   Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the code length of witcher 2 game(no. of lines.I heard about 7lakh lines)? how to determine the same? SujanShetty Coding 0 12-04-2013 11:06 AM
what is the code length of witcher 2 game(no. of lines.I heard about 7lakh lines)? how to determine the same? SujanShetty Coding 0 11-18-2013 07:06 PM
What's wrong with my python code? Couple of lines of code? Error message included.? Kelly Coding 0 03-28-2013 07:06 AM
Joe has 5 lines of code and Fred has 10 lines of code, then who has the most lines of code? Unknown_User Programming Languages 4 06-23-2012 02:06 PM
How hard is it to code Facebook? How many lines of codes? What languages? do you think YOU can code it? Unknown_User Coding 2 04-06-2012 10:37 AM