Quantcast
Channel: Arithmetic – MoreCodes
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

(VB.Net) Problem and Solution – Multiplication Table

Write a program that outputs the multiplication table for numbers 1 to 10. Solution: Module Module1 Sub Main() Dim product As Integer = 0 For i As Integer = 1 To 10 For j As Integer = 1 To 10 product =...

View Article



Image may be NSFW.
Clik here to view.

(F#, F-sharp) Problem and Solution – Multiplication Table

Write a program that outputs the multiplication table for numbers 1 to 10. Solution: open System let main() = let mutable product = 0 for i = 1 to 10 do for j = 1 to 10 do product <- i * j...

View Article

Image may be NSFW.
Clik here to view.

(VB.Net) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches.   Solution: Module Module1 Sub Main() Dim length As Double = 0 Console.WriteLine("This program converts centimeters...

View Article

Image may be NSFW.
Clik here to view.

(C#, C-Sharp) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches. Solution: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace...

View Article

Image may be NSFW.
Clik here to view.

(F#, F-Sharp) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches.   Solution: open System let main() = Console.WriteLine("This program converts centimeters to meters, feet, yards,...

View Article


Image may be NSFW.
Clik here to view.

(Python) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches.   Solution: length = 0 print "This program converts centimeters to meters, feet, yards, kilometers, inches." length...

View Article

Image may be NSFW.
Clik here to view.

(Ruby) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches.   Solution: length = 0 print "This program converts centimeters to meters, feet, yards, kilometers, inches.n" print...

View Article

Image may be NSFW.
Clik here to view.

(D) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches.   Solution: import std.stdio; void main(){ float length = 0; writeln("This program converts centimeters to meters,...

View Article


Image may be NSFW.
Clik here to view.

(CPP, C++) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches.   Solution: #include<iostream> using namespace std; int main(){ float length = 0; cout << "This program...

View Article


Image may be NSFW.
Clik here to view.

(Java) Problem and Solution – Conversion Length

Write a program that convert centimeters to meters, feet, yards, kilometers, inches.   Solution: import java.util.*; public class Program{ public static void main(String[]args){ Scanner scan = new...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images