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 181 views
1 answer 134 views
3 answers 283 views
283 views asked Jul 27, 2018 by avibootz
2 answers 217 views
...