#include <stdio.h>
int main(void) {
for(int i=1; i<=10; i++) printf("%i\t%i\r\n", i, i+10);
return 0;
}
Output:
1 11
2 12
3 13
4 14
5 15
6 16
7 17
8 18
9 19
10 20
More Related Contents:
- permutations and combinations [closed]
- C – is any use of unsigned int just terrible coding practice? [closed]
- Understanding Memory Layout of C Programs [closed]
- Capturing signals in C
- How to initialize all members of an array to the same value?
- C read file line by line
- How can one grab a stack trace in C?
- C library function to perform sort
- Returning a pointer to an automatic variable
- Why is strtok() Considered Unsafe?
- In C, does a pointer to a structure always point to its first member?
- size of character array and size of character pointer
- Static allocation of opaque data types
- How to find the element of an array that is repeated at least N/2 times?
- Efficient integer compare function
- What does __init mean in the Linux kernel code?
- How to use the addr2line command in Linux?
- Getting absolute path of a file
- How to use “zd” specifier with `printf()`?
- Why can’t I create an array with size determined by a global variable?
- In C, given a variable list of arguments, how to build a function call using them?
- How do C compilers implement functions that return large structures?
- Why can’t the size of a static array be made variable?
- Difference between “pointer to int” and “pointer to array of ints”
- Why is strtok causing a segmentation fault?
- Is this possible to customize printf?
- How do I make an infinite empty loop that won’t be optimized away?
- How do I link object files in C? Fails with “Undefined symbols for architecture x86_64”
- Is it possible to call a non-exported function that resides in an exe?
- How to split a string into tokens in C?