Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

First homework of new year!!

Name: Anonymous 2010-01-01 23:19

Let X be an integer.

1) Read in integer X from standard input
3) Let Y be X multiplied by 2
4) output "SUSSMAN!!!!!!" Y times

Name: Anonymous 2010-01-05 22:34

//Standard C++

#include <iostream>

int main()
{
 int x, y;
 
 cin >> x;

 y = x * 2;

 for( int i = 0; i <= y; ++i )
     cout << "SUSSMAN!" << endl;

return 0;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List