How to use Math.Round() in C#
How to use Math.Round() in C#
Description:
How to use Math.Round() in C#
using System; public class Program { public static void Main() { Console.WriteLine(Math.Round(9.99)); } }
Output:
20
View On WordPress
seen from United Kingdom
seen from China
seen from United States

seen from United States
seen from Germany
seen from United States
seen from Puerto Rico
seen from Poland
seen from Puerto Rico
seen from United States

seen from United Kingdom

seen from United States

seen from Malaysia
seen from China
seen from China
seen from France

seen from United States

seen from Italy

seen from Maldives
seen from United States
How to use Math.Round() in C#
How to use Math.Round() in C#
Description:
How to use Math.Round() in C#
using System; public class Program { public static void Main() { Console.WriteLine(Math.Round(9.99)); } }
Output:
20
View On WordPress

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
A big program with comments - C Statement
A big program with comments – C Statement
Description
A big program with comments
#include int main() { char adjective[20]; char food[20]; char chore[20]; char furniture[20]; /* Get the words to use in the madlib */ printf("Enter an adjective:"); /* prompt */ scanf("%s",&adjective); /* input */ printf("Enter a food:"); scanf("%s",&food); printf("Enter a household chore (past tense):"); scanf("%s",&chore); printf("Enter an item of…
View On WordPress
Adding Comments with /* */ - C Statement
Adding Comments with /* */ – C Statement
Introduction
Comment is there to remind you, or someone else.
It makes the code easier to read.
Anything between /* and */ is treated as a comment.
/* Displaying a Quotation */ #include <stdio.h> int main(void) { printf("this is a test!"); return 0; }
Output:
this is a test!
View On WordPress
Use a comment to identify the author of the code and to assert your copyright. - C Statement
Use a comment to identify the author of the code and to assert your copyright. – C Statement
Description
Use a comment to identify the author of the code and to assert your copyright.
/*/* / * Written by kagayablog.com * Copyright 2019 */ #include <stdio.h> int main(void) { printf("this is a test!"); return 0; }
Output:
this is a test
View On WordPress
Embellish comments to make them stand out - C Statement
Embellish comments to make them stand out – C Statement
Description
Embellish comments to make them stand out
/******************************************* * This is a very important comment * * so please read this. * *******************************************/ #include <stdio.h> int main(void) { printf("this is a test!"); return 0; }
Output:
this is a test!
View On WordPress

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Add a comment at the end of a line of code using a notation: // - C Statement
Add a comment at the end of a line of code using a notation: // – C Statement
Description
Add a comment at the end of a line of code using a notation: //
#include <stdio.h> int main(void) { printf("this is a test!"); // This line displays a quotation return 0; }
Output:
this is a test!
View On WordPress
Add more comments to the program to describe the statements - C Statement
Add more comments to the program to describe the statements – C Statement
Description
Add more comments to the program to describe the statements
/* Displaying a Quotation */ #include // a preprocessor directive int main(void) // identifies the function main() { // marks the beginning of main() printf("this is a test for you !"); // line outputs a quotation return 0; // returns control to the operating system } // marks the end of main()
View On WordPress
Block Statements - C Statement
Block Statements – C Statement
Introduction
Block statements groups related statements to one unit.
A block statement is begun with a { and terminated by its matching }.
#include <stdio.h> int main(void) { int i; { /* a free-standing block statement */ i = 120; printf("%d", i); } return 0; }
Output:
120
View On WordPress