0% found this document useful (0 votes)
4 views1 page

C Program for Doubling Input Value

The document contains a C program that prompts the user for an integer input, doubles it, and prints the result. It also includes a simple 'hello world' message for testing purposes. The code is designed to be a template that can be modified and copied to create new files.

Uploaded by

chiko bradley
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

C Program for Doubling Input Value

The document contains a C program that prompts the user for an integer input, doubles it, and prints the result. It also includes a simple 'hello world' message for testing purposes. The code is designed to be a template that can be modified and copied to create new files.

Uploaded by

chiko bradley
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

//Note:The template file will be copied to a new file.

When you change the code of


the template file you can create new file with this base code.
#include <stdio.h>
int main(){
printf("input:");
int aaa = 0;
scanf("%d",&aaa);
printf("%d",2*aaa);
printf("hello world");//test
return 0;
}

You might also like