Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to pause between 2 printf commands?

$
0
0
I need help to learn how to make a 2 second pause between to printf's.

#include <stdio.h>

void printHello() {
    printf("Hello!\n");
    printf("Who are you?\n");
    printf("Hi,(person)\n");
    printf("What are you up to?");
}

int main() {
    printHello();
    
    return 0;
}


Please help!

Thanks!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>