Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #292 from Iamtripathisatyam/main
Browse files Browse the repository at this point in the history
Add a code to display Message Box using C Programming.
Almas-Ali authored Oct 30, 2022
2 parents fd4873f + 59a0a79 commit 917d1f8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions C/messageBox.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Try this code on DEV-C++ IDE

#include <windows.h>
int main()
{
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", MB_ICONWARNING);
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", MB_ICONQUESTION);
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", MB_ICONINFORMATION);
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", MB_ICONERROR);
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", 1);
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", 2);
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", 3);
MessageBox(0, "Alert, invalid option. Please try again.", "Hello world", 4);
}

0 comments on commit 917d1f8

Please sign in to comment.