New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

C Programming Basics Bundle

by: alybeverley

C Programming Basics Bundle CS 102

GPA 4.0

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

This bundle contains basic programs in the C programming language. These notes are for when you've JUST STARTED programming in , as they won't be of any use to you otherwise. Programs Included:...
Intro to C Programming
Mini Zheng
Computer Science, programming
75 ?




Popular in Intro to C Programming

Popular in Computer Science and Engineering

This 8 page Bundle was uploaded by alybeverley on Tuesday October 11, 2016. The Bundle belongs to CS 102 at University of Alabama - Huntsville taught by Mini Zheng in Fall 2016. Since its upload, it has received 9 views. For similar materials see Intro to C Programming in Computer Science and Engineering at University of Alabama - Huntsville.

Popular in Computer Science and Engineering


Reviews for C Programming Basics Bundle


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/11/16
// //PROGRAM: adding two integers (Figure 2.5, page 45 of textbook) // #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void)  { int integer1,integer2,sum; printf("Enter first and second integers\n"); scanf("%d%d",&integer1,&integer2); //sum integer defined, which means the program will calculate the sum of the two  integers entered. sum=integer1+integer2; printf("Sum of entered numbers = %d\n",integer1+integer2); printf("\n"); printf("The value of integer1 is %d\nThe value of integer 2 is %d\n\nThe sum of these  two numbers is %5d\n",integer1,integer2,sum); system("pause"); } //display an arrow amidst a few back and forward slashes #include <stdio.h> #include <stdlib.h> int main(void) { //printing an arrow using three printf statements. printf("\\ \\ \\ \n"); printf("\­ \­ \­ \> \n"); printf("\/ \/ \/ \n"); printf("\n\n"); //printing an arrow using one printf statement. printf("\\ \\ \\ \n"    "\­ \­ \­ \> \n"    "\/ \/ \/ \n"); system("pause"); } //print a special project listed in the file.  #include <stdio.h> #include <stdlib.h> int main(void)  { printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\* \t\t \* \t\t \* \t\t \* \n"); printf("\n\n"); //do the above only using one printf statement. printf("*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n*"    "*\* \t\t \* \t\t \n.*"); system("pause"); } // a demonstration of two math operators, using two float numbers input by the user of the  program. #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void)  { float integer1 float integer2 integer1 = 5 integer2 = 6 printf("Enter the first variable.\n"); scanf("%f\n"); system("pause"); } //First C Program, comment section, hello.c source code #include <stdio.h> #include <stdlib.h> int main(void) { printf("Hello World!"); system("pause"); } //print my name, a fact, and have a space in between. #include <stdio.h> #include <stdlib.h> int main(void) { printf("My name is Alexandra.\n"); printf("I lived in Virginia.\n"); system("pause"); } //This program illustrates how to print special characters­ //like, \, ", ', and % //print the program pictured on the slide #include <stdio.h> #include <stdlib.h> int main(void) { //printing name, date, and program purpose. //use \t to insert tabs. printf("Name:\t\tAlexandra Noreiga.\n"); printf("Today\'s Date:\t8/24/2016\n");  printf("Program:\tOutput of Special Characters\n\n"); printf("\n"); //print a backslash printf("Here is a backslash: \\ \n"); //print a double quote printf("Here is a double quote: \" \n"); //print a single quote printf("Here is a single quote: \' \n"); //print a percent sign printf("Here is a percent sign: %% \n"); //print all of them! printf("All of them!: \\ \"  \'  %% \n"); printf("\n\n"); system("pause"); }


Buy Material

Are you sure you want to buy this material for

75 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Jennifer McGill UCSF Med School

"Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over $500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.