C

+2 Islam Kamilov · December 10, 2014
How can I learn C?

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
+2 Fayazur Rahman Summit · April 6, 2015
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char YourName[10];
    int YourWeight;

    printf("Hello!\n");


    printf("What is your name? \n");
    scanf("%s", YourName);

    printf("What is your weight in kilograms? \n");
    scanf("%d", &YourWeight);

    printf("%s has %d kilograms. \n", YourName, YourWeight);

    return 0;
}
0 Marek Ďurkovič · April 8, 2015
Thanks guys :)
  • 1
  • 2

C

128,111 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator