Skip to content

This code was developed in C++ using Code Blocks on windows 10

Notifications You must be signed in to change notification settings

hernanijj/Question2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Question2

Write a C/C++ or Java program that prints each number from 1 to 100 on a new line.

For each multiple of 3, print "Foo" instead of the number. For each multiple of 5, print "Baa" instead of the number. For multiple numbers simultaneously of 3 and 5, print "FooBaa", instead of the number.

Your solution should be using as few lines of code as possible, but you should produce efficient code.

This code was developed in C++ using Code Blocks on windows 10

Running the application

Instaling Code::Blocks with mingw

site: https://www.codeblocks.org/downloads/binaries/

On cmd type to clone the project

https://github.com/hernanijj/Question2.git

With CodeBlocks opened search the project directory and click on:

Build and Run

Run the application

./bin/Release/1.exe

About

This code was developed in C++ using Code Blocks on windows 10

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages