#include<stdio.h>
void main(){
int N,i,j;
printf("enter 'N':
");
scanf("%d",&N);
printf("
");
for(i=1;i<=N;i++){
for(j=1;j<=i;j++){
printf("* ");
}
printf("
");
}
printf("
");
}
#include <stdio.h>
int main()
{
int n, i;
for(n = 1; n <= 20; n = n + 1) {
for(i = 1; i <= 10; i = i + 1) {
printf("%d X %d = %d
", n, i, n*i);
}
}
return 0;
}
Code Example |
---|
C :: silicon valley |
C :: block a website on mac |
C :: c iterate string |
C :: c programming itoa() example |
C :: c convert integer to string |
C :: sdl2 c programming |
C :: how to turn off zsh |
C :: find length of int number in c |
C :: get range of values in mongodb |
C :: Graphics in C Draw Circle |
C :: Graphics in C Draw A Line |
C :: c print sizeof char |
C :: PATH_MAX |
C :: c print to stderr |
C :: Convert mpg / mp4 to gif with ffmpeg |
C :: stack push code |
C :: hello word in c |
C :: equal string c |
C :: c code to grade marks |
C :: c check if character is an alphabet |
C :: add to beginning of array c |
C :: print float in c |
C :: convert char number to int in c |
C :: search sorted array c |
C :: c extern |
C :: convert video to gif with ffmpeg |
C :: how to make two arrays equal in c |
C :: Install valet-linux |
C :: c sjf |
C :: Here is a program in C that illustrates the use of fprintf() to write a text file: |