All pastes #797271 Raw Edit

Stuff

public text v1 · immutable
#797271 ·published 2007-11-25 21:34 UTC
rendered paste body
#include<stdio.h>
#include<string.h>
#include<ctype.h>
# include <stdlib.h>

typedef struct {
            char *name;
            double price; 
            }Element;
            
 Element sizelist[3] = { {"1.small", 1.00}, {"2.medium", 2.00}, {"3.large", 3.00}};

 
 int main(int argc, char*argv)  {
     int i;
   
     for (i=0; i<3; i++)  {
         printf("%s    %d\n", sizelist[i].name, sizelist[i].price);
         }
         system ("pause");
         return(0);
         }