A Triple Sharp
Jump to navigation
Jump to search
- The title of this article is not correct because of technical limitations. The correct title is actually A𝄪♯ or Ax#.
A𝄪# is A triple sharped(A, bB, B, C), So its syntax is same as C. (I added something in it.)
Syntax
Same as C and C++.
Programs
Hello, world
#include <stdio.h>
void main()
{
puts("Hello, world!");
}
99 bottles of beers
#include <stdio.h>
#include <windows.h>
#include <string.h>
#include <iostream>
using namespace std;
string unit = "bottles";
void main()
{
for(int i = 99; i > 0; i--)
{
unit = (i > 1) ? "bottles" : "bottle";
cout << i << " " << unit << " of the beers on the wall, " << endl;
cout << i << " " << unit << " of the beers. " << endl;
puts("Take 1 down, pass it around, ");
if (i - 1 == 0)
{
cout << "No more bottles of the beers on the wall." << endl << endl;
}
else
{
cout << (i - 1) << " " << unit << " of the beers on the wall. " << endl << endl;
}
}
puts("No more bottles of the beer on the wall, \nNo more bottles of the beer. ");
puts("Go to the store and buy some more, \n99 bottles of the beers on the wall.\n");
}