C Código para converter de código Python online
#include<stdio.h>
int main()
{
printf("Hello world");
return 0;
}
Light Lyrebird
#include<stdio.h>
int main()
{
printf("Hello world");
return 0;
}
console.log("Hello World!");
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n;
scanf("%d\n",&n);
char batsmen[100],bat[100];
int run=0,score;
while(scanf("%[^,],%d\n",batsmen,&score)>0)
{
if(score>run)
{
run=score;
strcpy(bat,batsmen);
}
printf("%s",bat);
}
}
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct order {
char name[20];
int arr[3];
float total;
struct order* next;
} order;
// add data to end of the queue
order* addOrderInput(order *head,int n) {
int i,k;
order c;
for(k=0; k<n; k++) {
printf("Customer %d name : ",(k+1));
gets(c.name);
}
#include<stdio.h>
#include<conio.h>
void main()
{
int rows,i,j,k=0;
printf("Enter number of rows: ");
scanf("%d",&rows);
for(i=1;i<=rows;i++)
{
for(j=1;j<=i;++j)
printf("%d ",k+j);
++k;
printf("\n");
}
getch();
}