Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,870 questions

51,793 answers

573 users

How to print with a new line without using \n in C

1 Answer

0 votes
#include <stdio.h>

int main(void) {
    puts("c"); 
    puts("c++"); 

    printf("Java%c", 10);
    printf("Python%c", 0x0A);

    printf("PHP\033[1B\rNode.js");

    return 0;
}





/*
run:

c
c++
Java
Python
PHP
Node.js

*/

 



answered May 13, 2022 by avibootz

Related questions

1 answer 167 views
1 answer 123 views
3 answers 263 views
263 views asked Jul 27, 2018 by avibootz
2 answers 199 views
...