Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
#define clear() printf("\e[1;1H\e[2J"); void How(char *name1); int main(void){ char name[20]; clear(); printf("Hello.\n"); sleep(1); clear(); printf("Please Enter Your Name: "); fgets(name,sizeof(name),stdin); clear(); int nn = strlen(name); //get length of name name[nn - 1] = '\0'; //remove newline at end of name How(name); } void How(char *name1){ char ch; clear(); printf("Hello %s, how are you?\n", name1); printf("\t1)Good\n\t2)Bad\n>"); scanf(" %c", &ch ); if(ch == '1'){ printf("That is good to hear %s\n",name1); sleep(2); } else if(ch == '2'){ printf("Sorry to hear that %s\n",name1); sleep(2); } else{ printf("Sorry, that is not an option.\n"); sleep(2); } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)