HTML Attributes

Attributes provide additional information about an element or a tag, while also modifying them. Most attributes have a value; the value modifies the attribute. <!DOCTYPE html> <html lang="en"> <head> <title> My html page</title> <meta charset="UTF-8"> </head> <body> <palign="right">This text is alinged to right</p> </body> </html> In this example, the value of "right" indicates that the … Continue reading HTML Attributes

C++ program to find factorial of a given number

A simple cpp program to find factorial of a given number using foor loop. Input n=5 output =120 Time Complexity is O(n) //CPP program to find factorial of a given number // using for loop #include using namespace std; int main(){     int n,fact=1,i;     cout<<"Enter a number:";     cin>>n;     for(i=1;i<=n;i++){         fact =fact … Continue reading C++ program to find factorial of a given number